From 6be20422494e3806fba3d1c5ad5c3e98bd6e67e5 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 1 Jun 2022 19:34:43 +0200 Subject: chore: replace the Ackee select by a toggle component --- .../molecules/modals/tooltip.stories.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/components/molecules/modals/tooltip.stories.tsx') diff --git a/src/components/molecules/modals/tooltip.stories.tsx b/src/components/molecules/modals/tooltip.stories.tsx index 06a4855..a3dfa9f 100644 --- a/src/components/molecules/modals/tooltip.stories.tsx +++ b/src/components/molecules/modals/tooltip.stories.tsx @@ -1,5 +1,6 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; import Tooltip from './tooltip'; +import { content, icon, title } from './tooltip.fixture'; /** * Tooltip - Storybook Meta @@ -21,6 +22,20 @@ export default { required: false, }, }, + cloneClassName: { + control: { + type: 'text', + }, + description: + 'Set additional classnames to the tooltip when using cloneElement.', + table: { + category: 'Styles', + }, + type: { + name: 'string', + required: false, + }, + }, content: { control: { type: 'text', @@ -63,8 +78,7 @@ const Template: ComponentStory = (args) => ( */ 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: '?', - title: 'Laborum enim vero', + content, + icon, + title, }; -- cgit v1.2.3