diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-07 11:58:33 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-07 11:58:33 +0200 |
| commit | 2d5d015d23409b456e36a0370466ee42aa47631f (patch) | |
| tree | 046e91ebc8624c935a7e8fda16081ff613939b68 /src/components/molecules/forms/motion-toggle.stories.tsx | |
| parent | c7b134621301227ead150d30fe9b222487a356b7 (diff) | |
chore: add a MotionToggle component
Diffstat (limited to 'src/components/molecules/forms/motion-toggle.stories.tsx')
| -rw-r--r-- | src/components/molecules/forms/motion-toggle.stories.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/molecules/forms/motion-toggle.stories.tsx b/src/components/molecules/forms/motion-toggle.stories.tsx new file mode 100644 index 0000000..4fc199a --- /dev/null +++ b/src/components/molecules/forms/motion-toggle.stories.tsx @@ -0,0 +1,16 @@ +import { ComponentMeta, ComponentStory } from '@storybook/react'; +import { IntlProvider } from 'react-intl'; +import MotionToggleComponent from './motion-toggle'; + +export default { + title: 'Molecules/Forms', + component: MotionToggleComponent, +} as ComponentMeta<typeof MotionToggleComponent>; + +const Template: ComponentStory<typeof MotionToggleComponent> = (args) => ( + <IntlProvider locale="en"> + <MotionToggleComponent {...args} /> + </IntlProvider> +); + +export const MotionToggle = Template.bind({}); |
