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/molecules/modals/tooltip.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/molecules/modals/tooltip.stories.tsx')
| -rw-r--r-- | src/components/molecules/modals/tooltip.stories.tsx | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/components/molecules/modals/tooltip.stories.tsx b/src/components/molecules/modals/tooltip.stories.tsx index 63fc71d..06a4855 100644 --- a/src/components/molecules/modals/tooltip.stories.tsx +++ b/src/components/molecules/modals/tooltip.stories.tsx @@ -1,9 +1,12 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; -import TooltipComponent from './tooltip'; +import Tooltip from './tooltip'; +/** + * Tooltip - Storybook Meta + */ export default { - title: 'Molecules/Modals', - component: TooltipComponent, + title: 'Molecules/Modals/Tooltip', + component: Tooltip, argTypes: { className: { control: { @@ -49,14 +52,17 @@ export default { }, }, }, -} as ComponentMeta<typeof TooltipComponent>; +} as ComponentMeta<typeof Tooltip>; -const Template: ComponentStory<typeof TooltipComponent> = (args) => ( - <TooltipComponent {...args} /> +const Template: ComponentStory<typeof Tooltip> = (args) => ( + <Tooltip {...args} /> ); -export const Tooltip = Template.bind({}); -Tooltip.args = { +/** + * Tooltip Stories - Help + */ +export const Help = Template.bind({}); +Help.args = { content: 'Minima tempora fuga omnis ratione doloribus ut. Totam ea vitae consequatur. Fuga hic ipsum. In non debitis ex assumenda ut dicta. Sit ut maxime eligendi est.', icon: '?', |
