File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default {
15
15
label : 'label' ,
16
16
labelPosition : 'right' ,
17
17
disabled : false ,
18
+ readonly : false ,
18
19
checked : false ,
19
20
'--uui-toggle-size' : '18px' ,
20
21
'--uui-toggle-switch-width' : '36px' ,
@@ -38,6 +39,7 @@ export const AAAOverview: Story = props => html`
38
39
.label=${ props . label }
39
40
.labelPosition=${ props . labelPosition }
40
41
?disabled=${ props . disabled }
42
+ ?readonly=${ props . readonly }
41
43
?checked=${ props . checked }
42
44
> ${ props . slot } </ uui-toggle
43
45
>
@@ -150,3 +152,16 @@ Disabled.parameters = {
150
152
} ,
151
153
} ,
152
154
} ;
155
+
156
+ export const Readonly : Story = props => html `
157
+ < uui-toggle ?readonly =${ props . readonly } label ="Readonly" checked> </ uui-toggle >
158
+ ` ;
159
+ Readonly . args = { readonly : true } ;
160
+ Readonly . parameters = {
161
+ controls : { include : [ 'readonly' ] } ,
162
+ docs : {
163
+ source : {
164
+ code : `<uui-toggle readonly>Readonly</uui-toggle>` ,
165
+ } ,
166
+ } ,
167
+ } ;
You can’t perform that action at this time.
0 commit comments