Skip to content

Instantly share code, notes, and snippets.

@ashimon83
Last active November 30, 2021 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashimon83/59ba0e62bd50a690f0fe460308faa0a8 to your computer and use it in GitHub Desktop.
Save ashimon83/59ba0e62bd50a690f0fe460308faa0a8 to your computer and use it in GitHub Desktop.
svgr index component
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