aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/tooltip/tooltip.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-31 16:00:45 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commit3ff4c37a7a2c40340c17f9e6c1754444bce0f839 (patch)
tree551ca3df148d46af2bd27995fa98c01378030644 /src/components/molecules/tooltip/tooltip.stories.tsx
parent0e52a59917406ad03c174e030c6c1c92ab23449d (diff)
refactor(components): rewrite Modal component
* add an optional close button * add an icon prop
Diffstat (limited to 'src/components/molecules/tooltip/tooltip.stories.tsx')
-rw-r--r--src/components/molecules/tooltip/tooltip.stories.tsx42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/components/molecules/tooltip/tooltip.stories.tsx b/src/components/molecules/tooltip/tooltip.stories.tsx
deleted file mode 100644
index 8a22a06..0000000
--- a/src/components/molecules/tooltip/tooltip.stories.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { ComponentMeta, ComponentStory } from '@storybook/react';
-import { Tooltip } from './tooltip';
-import { useState } from 'react';
-
-/**
- * Switch - Storybook Meta
- */
-export default {
- title: 'Molecules/Tooltip',
- component: Tooltip,
- args: {},
- argTypes: {},
-} as ComponentMeta<typeof Tooltip>;
-
-const Template: ComponentStory<typeof Tooltip> = ({
- isOpen,
- onToggle: _onToggle,
- ...args
-}) => {
- const [isOpened, setIsOpened] = useState(isOpen);
-
- const toggle = () => {
- setIsOpened((prev) => !prev);
- };
-
- return (
- <div style={{ position: 'relative' }}>
- <Tooltip {...args} isOpen={isOpened} onToggle={toggle} />
- </div>
- );
-};
-
-/**
- * Tooltip Stories - Example
- */
-export const Example = Template.bind({});
-Example.args = {
- children:
- 'Inventore natus dignissimos aut illum modi asperiores. Et voluptatibus delectus.',
- heading: 'A title',
- isOpen: false,
-};