@@ -13,7 +13,7 @@ export default {
13
13
id : 'uui-badge' ,
14
14
args : {
15
15
look : 'primary' ,
16
- default : '1' ,
16
+ slot : '1' ,
17
17
attention : false ,
18
18
} ,
19
19
argTypes : {
@@ -29,22 +29,25 @@ export default {
29
29
] ,
30
30
control : { type : 'select' } ,
31
31
} ,
32
+ slot : {
33
+ control : { type : 'text' } ,
34
+ } ,
32
35
} ,
33
36
} ;
34
37
35
38
const Template : Story = props => html ` < uui-icon-registry-essential >
36
39
< div
37
40
style ="position:relative; width:80px; height:80px; border: 2px dashed black; ">
38
41
< uui-badge .look =${ props . look } ?attention =${ props . attention }
39
- > ${ props . default } </ uui-badge
42
+ > ${ props . slot } </ uui-badge
40
43
>
41
44
</ div >
42
45
</ uui-icon-registry-essential > `;
43
46
44
47
export const AAAOverview = Template . bind ( { } ) ;
45
48
AAAOverview . args = {
46
49
look : 'primary' ,
47
- default : '1' ,
50
+ slot : '1' ,
48
51
attention : false ,
49
52
} ;
50
53
AAAOverview . storyName = 'Overview' ;
@@ -63,7 +66,7 @@ AAAOverview.parameters = {
63
66
export const WithAttention = Template . bind ( { } ) ;
64
67
WithAttention . args = {
65
68
look : 'danger' ,
66
- default : '!' ,
69
+ slot : '!' ,
67
70
attention : true ,
68
71
} ;
69
72
WithAttention . parameters = {
@@ -81,7 +84,7 @@ WithAttention.parameters = {
81
84
export const WithText = Template . bind ( { } ) ;
82
85
WithText . args = {
83
86
look : 'positive' ,
84
- default : 'Published' ,
87
+ slot : 'Published' ,
85
88
} ;
86
89
WithText . parameters = {
87
90
docs : {
@@ -98,9 +101,12 @@ WithText.parameters = {
98
101
export const WithIcon = Template . bind ( { } ) ;
99
102
WithIcon . args = {
100
103
look : 'positive' ,
101
- default : html `< uui-icon name ="favorite "> </ uui-icon > ` ,
104
+ slot : html `< uui-icon name ="favorite "> </ uui-icon > ` ,
102
105
} ;
103
106
WithIcon . parameters = {
107
+ controls : {
108
+ exclude : [ 'slot' ] ,
109
+ } ,
104
110
docs : {
105
111
source : {
106
112
code : `
@@ -118,11 +124,11 @@ WithIcon.parameters = {
118
124
119
125
export const OnButton : Story = props => html ` < uui-button look ="outline ">
120
126
Button label
121
- < uui-badge .look =${ props . look } > ${ props . default } </ uui-badge >
127
+ < uui-badge .look =${ props . look } > ${ props . slot } </ uui-badge >
122
128
</ uui-button > `;
123
129
OnButton . args = {
124
130
look : 'danger' ,
125
- default : '!' ,
131
+ slot : '!' ,
126
132
} ;
127
133
OnButton . parameters = {
128
134
docs : {
@@ -143,14 +149,14 @@ export const Looks: Story = props => html`
143
149
html `< div
144
150
style ="position:relative; display:inline-block; width:10px; height:10px; margin-right: 16px; ">
145
151
< uui-badge .look =${ lookName } ?attention =${ props . attention }
146
- > ${ props . default } </ uui-badge
152
+ > ${ props . slot } </ uui-badge
147
153
>
148
154
</ div > `
149
155
) }
150
156
` ;
151
157
Looks . args = {
152
158
look : 'primary' ,
153
- default : '!' ,
159
+ slot : '!' ,
154
160
} ;
155
161
156
162
let lookNamesDocsCode = '' ;
0 commit comments