File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default {
12
12
label : 'label' ,
13
13
checked : false ,
14
14
disabled : false ,
15
+ readonly : false ,
15
16
} ,
16
17
argTypes : {
17
18
slot : { control : { type : 'text' } } ,
@@ -27,6 +28,7 @@ export const AAAOverview: Story = props =>
27
28
.label =${ props . label }
28
29
.name=${ props . name }
29
30
?disabled=${ props . disabled }
31
+ ?readonly=${ props . readonly }
30
32
?checked=${ props . checked }
31
33
> ${ props . slot } </ uui-radio
32
34
> ` ;
@@ -50,6 +52,24 @@ Disabled.parameters = {
50
52
} ,
51
53
} ;
52
54
55
+ export const Readonly : Story = props =>
56
+ html ` < uui-radio value ="1 " ?readonly =${ props . readonly } > Readonly</ uui-radio > ` ;
57
+
58
+ Readonly . args = {
59
+ readonly : true ,
60
+ } ;
61
+
62
+ Readonly . parameters = {
63
+ controls : { include : [ 'readonly' ] } ,
64
+ docs : {
65
+ source : {
66
+ code : `
67
+ <uui-radio value="1" readonly>Readonly</uui-radio>
68
+ ` ,
69
+ } ,
70
+ } ,
71
+ } ;
72
+
53
73
export const Checked : Story = props =>
54
74
html ` < uui-radio value ="1 " ?checked =${ props . checked } > Checked</ uui-radio > ` ;
55
75
You can’t perform that action at this time.
0 commit comments