diff options
Diffstat (limited to 'src/components/atoms/links/social-link.stories.tsx')
| -rw-r--r-- | src/components/atoms/links/social-link.stories.tsx | 40 | 
1 files changed, 40 insertions, 0 deletions
| diff --git a/src/components/atoms/links/social-link.stories.tsx b/src/components/atoms/links/social-link.stories.tsx new file mode 100644 index 0000000..bd9a364 --- /dev/null +++ b/src/components/atoms/links/social-link.stories.tsx @@ -0,0 +1,40 @@ +import { ComponentMeta, ComponentStory } from '@storybook/react'; +import SocialLinkComponent from './social-link'; + +export default { +  title: 'Atoms/Links', +  component: SocialLinkComponent, +  argTypes: { +    name: { +      control: { +        type: 'select', +      }, +      description: 'Social website name.', +      options: ['Github', 'Gitlab', 'LinkedIn', 'Twitter'], +      type: { +        name: 'string', +        required: true, +      }, +    }, +    url: { +      control: { +        type: null, +      }, +      description: 'Social profile url.', +      type: { +        name: 'string', +        required: true, +      }, +    }, +  }, +} as ComponentMeta<typeof SocialLinkComponent>; + +const Template: ComponentStory<typeof SocialLinkComponent> = (args) => ( +  <SocialLinkComponent {...args} /> +); + +export const SocialLink = Template.bind({}); +SocialLink.args = { +  name: 'Github', +  url: '#', +}; | 
