diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-20 19:24:21 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-20 19:27:29 +0200 |
| commit | a08291b1586858fc894a27d56f55f87a88f8dbd3 (patch) | |
| tree | 0aa36c8add0ad0ecc07c0f7f20f5af3e2f7abe46 /src/components/atoms/buttons/button-link.stories.tsx | |
| parent | 362cf45bc520a68a1c1be20e1189ca2307577dde (diff) | |
refactor(storybook): reorganize design system
Add more stories for each components and change some components
categories for better organization.
Diffstat (limited to 'src/components/atoms/buttons/button-link.stories.tsx')
| -rw-r--r-- | src/components/atoms/buttons/button-link.stories.tsx | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/src/components/atoms/buttons/button-link.stories.tsx b/src/components/atoms/buttons/button-link.stories.tsx index 92b7521..2e1c040 100644 --- a/src/components/atoms/buttons/button-link.stories.tsx +++ b/src/components/atoms/buttons/button-link.stories.tsx @@ -1,9 +1,15 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; -import ButtonLinkComponent from './button-link'; +import ButtonLink from './button-link'; +/** + * ButtonLink - Storybook Meta + */ export default { - title: 'Atoms/Buttons', - component: ButtonLinkComponent, + title: 'Atoms/Buttons/ButtonLink', + component: ButtonLink, + args: { + shape: 'rectangle', + }, argTypes: { 'aria-label': { control: { @@ -82,14 +88,38 @@ export default { }, }, }, -} as ComponentMeta<typeof ButtonLinkComponent>; +} as ComponentMeta<typeof ButtonLink>; -const Template: ComponentStory<typeof ButtonLinkComponent> = (args) => ( - <ButtonLinkComponent {...args} /> +const Template: ComponentStory<typeof ButtonLink> = (args) => ( + <ButtonLink {...args} /> ); -export const ButtonLink = Template.bind({}); -ButtonLink.args = { +/** + * ButtonLink Story - Primary + */ +export const Primary = Template.bind({}); +Primary.args = { + children: 'Link', + kind: 'primary', + target: '#', +}; + +/** + * ButtonLink Story - Secondary + */ +export const Secondary = Template.bind({}); +Secondary.args = { + children: 'Link', + kind: 'secondary', + target: '#', +}; + +/** + * ButtonLink Story - Tertiary + */ +export const Tertiary = Template.bind({}); +Tertiary.args = { children: 'Link', + kind: 'tertiary', target: '#', }; |
