File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
packages/uui-checkbox/lib Expand file tree Collapse file tree 1 file changed +18
-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-checkbox-size' : '18px' ,
20
21
} ,
@@ -42,6 +43,7 @@ export const AAAOverview: Story = props => html`
42
43
.label=${ props . label }
43
44
.labelPosition=${ props . labelPosition }
44
45
?disabled=${ props . disabled }
46
+ ?readonly=${ props . readonly }
45
47
?checked=${ props . checked }
46
48
> ${ props . slot } </ uui-checkbox
47
49
>
@@ -157,3 +159,19 @@ Disabled.parameters = {
157
159
} ,
158
160
} ,
159
161
} ;
162
+
163
+ export const Readonly : Story = props => html `
164
+ < uui-checkbox
165
+ ?readonly =${ props . readonly }
166
+ .label =${ 'Readonly' }
167
+ checked> </ uui-checkbox >
168
+ ` ;
169
+ Readonly . args = { readonly : true } ;
170
+ Readonly . parameters = {
171
+ controls : { include : [ 'readonly' ] } ,
172
+ docs : {
173
+ source : {
174
+ code : `<uui-checkbox label="Readonly" checked readonly></uui-checkbox>` ,
175
+ } ,
176
+ } ,
177
+ } ;
You can’t perform that action at this time.
0 commit comments