-
-
Save ashimon83/59ba0e62bd50a690f0fe460308faa0a8 to your computer and use it in GitHub Desktop.
svgr index component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Story } from '@storybook/react/types-6-0' | |
import React from 'react' | |
import { colors, Colors } from '../../styles/colors' | |
import { VStack, HStack } from '../Stack' | |
import IconChevronNormal from './ChevronNormal' | |
export { IconChevronNormal } | |
import IconExclamationMarkCircle from './ExclamationMarkCircle' | |
export { IconExclamationMarkCircle } | |
import IconLocationArrow from './LocationArrow' | |
export { IconLocationArrow } | |
// for storybook | |
export default { | |
title: 'Icons', | |
args: { | |
color: colors.blueBase, | |
}, | |
} | |
type AllIconsProps = { | |
color: Colors, | |
} | |
export const AllIcons: Story<AllIconsProps> = (args) => { | |
return ( | |
<VStack> | |
<HStack> | |
<IconChevronNormal width={20} height={20} {...args} /> | |
<span>IconChevronNormal</span> | |
</HStack> | |
<HStack> | |
<IconExclamationMarkCircle width={20} height={20} {...args} /> | |
<span>IconExclamationMarkCircle</span> | |
</HStack> | |
<HStack> | |
<IconLocationArrow width={20} height={20} {...args} /> | |
<span>IconLocationArrow</span> | |
</HStack> | |
</VStack> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment