@@ -49,12 +49,31 @@ export default meta;
4949type Story = StoryObj < typeof Button > ;
5050
5151export const Primary : Story = {
52- args : { children : 'Primary' } ,
53- render : ( args ) => < Button { ...args } /> ,
52+ args : {
53+ children : 'Save and continue' ,
54+ } ,
55+ } ;
56+
57+ export const Secondary : Story = {
58+ args : {
59+ secondary : true ,
60+ children : 'Find my location' ,
61+ } ,
62+ } ;
63+
64+ export const Warning : Story = {
65+ args : {
66+ warning : true ,
67+ children : 'Yes, delete this vaccine' ,
68+ } ,
69+ } ;
70+
71+ export const Reverse : Story = {
72+ args : {
73+ reverse : true ,
74+ children : 'Log out' ,
75+ } ,
5476} ;
55- export const Secondary : Story = { args : { secondary : true , children : 'Secondary' } } ;
56- export const Reverse : Story = { args : { reverse : true , children : 'Reverse' } } ;
57- export const Warning : Story = { args : { warning : true , children : 'Warning' } } ;
5877
5978/**
6079 *
@@ -76,14 +95,13 @@ export const PreventDoubleClickButton: Story = {
7695 onClick : ( ) => console . log ( new Date ( ) ) ,
7796 children : 'Debounced Button' ,
7897 } ,
79- render : ( args ) => < Button { ...args } /> ,
8098} ;
99+
81100export const PreventDoubleClickLinkButton : Story = {
82101 args : {
83102 preventDoubleClick : true ,
84103 href : '#' ,
85104 onClick : ( ) => console . log ( new Date ( ) ) ,
86105 children : 'Debounced Button as Link' ,
87106 } ,
88- render : ( args ) => < Button { ...args } /> ,
89107} ;
0 commit comments