@@ -9,93 +9,52 @@ export default meta
99type Story = StoryObj < typeof meta >
1010
1111export const Primary : Story = {
12- args : { } ,
13- render : args => ( {
14- components : { Component } ,
15- setup ( ) {
16- return { args }
17- } ,
18- template : '<Component v-bind="args">Primary Button</Component>' ,
19- } ) ,
12+ args : {
13+ default : 'Primary Button' ,
14+ } ,
2015}
2116
2217export const Secondary : Story = {
2318 args : {
19+ default : 'Secondary Button' ,
2420 variant : 'secondary' ,
2521 } ,
26- render : args => ( {
27- components : { Component } ,
28- setup ( ) {
29- return { args }
30- } ,
31- template : '<Component v-bind="args">Secondary Button</Component>' ,
32- } ) ,
3322}
3423
3524export const Small : Story = {
3625 args : {
37- variant : 'secondary ' ,
26+ default : 'Small Button ' ,
3827 size : 'small' ,
28+ variant : 'secondary' ,
3929 } ,
40- render : args => ( {
41- components : { Component } ,
42- setup ( ) {
43- return { args }
44- } ,
45- template : '<Component v-bind="args">Small Button</Component>' ,
46- } ) ,
4730}
4831
4932export const Disabled : Story = {
5033 args : {
34+ default : 'Disabled Button' ,
5135 disabled : true ,
5236 } ,
53- render : args => ( {
54- components : { Component } ,
55- setup ( ) {
56- return { args }
57- } ,
58- template : '<Component v-bind="args">Disabled Button</Component>' ,
59- } ) ,
6037}
6138
6239export const WithIcon : Story = {
6340 args : {
64- variant : 'secondary ' ,
41+ default : 'Search ' ,
6542 classicon : 'i-carbon:search' ,
43+ variant : 'secondary' ,
6644 } ,
67- render : args => ( {
68- components : { Component } ,
69- setup ( ) {
70- return { args }
71- } ,
72- template : '<Component v-bind="args">Search</Component>' ,
73- } ) ,
7445}
7546
7647export const WithKeyboardShortcut : Story = {
7748 args : {
78- variant : 'secondary' ,
7949 ariaKeyshortcuts : '/' ,
50+ default : 'Search' ,
51+ variant : 'secondary' ,
8052 } ,
81- render : args => ( {
82- components : { Component } ,
83- setup ( ) {
84- return { args }
85- } ,
86- template : '<Component v-bind="args">Search</Component>' ,
87- } ) ,
8853}
8954
9055export const Block : Story = {
9156 args : {
9257 block : true ,
58+ default : 'Full Width Button' ,
9359 } ,
94- render : args => ( {
95- components : { Component } ,
96- setup ( ) {
97- return { args }
98- } ,
99- template : '<Component v-bind="args">Full Width Button</Component>' ,
100- } ) ,
10160}
0 commit comments