File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/components/Button/__stories__ Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
Globe ,
9
9
Heart ,
10
10
} from '@gravity-ui/icons' ;
11
+ import { action } from '@storybook/addon-actions' ;
11
12
import type { Meta , StoryObj } from '@storybook/react' ;
12
13
13
14
import { Showcase } from '../../../demo/Showcase' ;
@@ -41,7 +42,16 @@ export default {
41
42
42
43
type Story = StoryObj < typeof Button > ;
43
44
44
- export const Default : Story = { args : { children : 'Button' } } ;
45
+ export const Default : Story = {
46
+ args : {
47
+ children : 'Button' ,
48
+ onClick : action ( 'onClick' ) ,
49
+ onMouseEnter : action ( 'onMouseEnter' ) ,
50
+ onMouseLeave : action ( 'onMouseLeave' ) ,
51
+ onFocus : action ( 'onFocus' ) ,
52
+ onBlur : action ( 'onBlur' ) ,
53
+ } ,
54
+ } ;
45
55
46
56
export const View : Story = {
47
57
render : ( args ) => < ButtonViewShowcase { ...args } /> ,
You can’t perform that action at this time.
0 commit comments