1
0

JoyTokenIcon.stories.tsx 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import styled from '@emotion/styled'
  2. import { Meta, StoryFn } from '@storybook/react'
  3. import { JoyTokenIcon, JoyTokenIconProps } from './JoyTokenIcon'
  4. export default {
  5. title: 'Icons/JoyTokenIcon',
  6. component: JoyTokenIcon,
  7. } as Meta<JoyTokenIconProps>
  8. const Template: StoryFn<JoyTokenIconProps> = (args) => {
  9. return (
  10. <Container>
  11. <WrapperLight>
  12. <JoyTokenIcon {...args} />
  13. </WrapperLight>
  14. <WrapperDark>
  15. <JoyTokenIcon {...args} />
  16. </WrapperDark>
  17. </Container>
  18. )
  19. }
  20. export const Default = Template.bind({})
  21. const Container = styled.div`
  22. display: flex;
  23. flex-direction: row;
  24. `
  25. const WrapperLight = styled.div`
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. width: 100px;
  30. height: 100px;
  31. background: wheat;
  32. `
  33. const WrapperDark = styled.div`
  34. display: flex;
  35. align-items: center;
  36. justify-content: center;
  37. width: 100px;
  38. height: 100px;
  39. background: #0b0c0f;
  40. margin-left: 32px;
  41. `