File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments