Skip to content

Commit 8f54a0e

Browse files
authored
Merge pull request #21 from solved-ac/feature/tooltip
feat: tooltip storybook
2 parents dcf536b + 4047b4c commit 8f54a0e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Button, Tooltip } from '@solved-ac/ui-react'
2+
import { ComponentMeta, ComponentStory } from '@storybook/react'
3+
import React from 'react'
4+
5+
export default {
6+
title: 'Components/Tooltip',
7+
component: Tooltip,
8+
argTypes: {
9+
title: {
10+
control: 'text',
11+
description: 'The title to display',
12+
defaultValue: 'Tooltip',
13+
},
14+
noDefaultStyles: {
15+
control: 'boolean',
16+
description: 'Whether to use the default styles',
17+
defaultValue: false,
18+
},
19+
},
20+
} as ComponentMeta<typeof Tooltip>
21+
22+
const Template: ComponentStory<typeof Tooltip> = (args) => <Tooltip {...args} />
23+
24+
export const Default = Template.bind({})
25+
Default.args = {
26+
children: <Button>Hover me!</Button>,
27+
title: 'Tooltip',
28+
}

0 commit comments

Comments
 (0)