Skip to content

Commit dbad401

Browse files
madsrasmusseniOvergaard
authored andcommitted
docs: add readonly story
1 parent 35bc22d commit dbad401

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/uui-radio/lib/uui-radio.story.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
label: 'label',
1313
checked: false,
1414
disabled: false,
15+
readonly: false,
1516
},
1617
argTypes: {
1718
slot: { control: { type: 'text' } },
@@ -27,6 +28,7 @@ export const AAAOverview: Story = props =>
2728
.label=${props.label}
2829
.name=${props.name}
2930
?disabled=${props.disabled}
31+
?readonly=${props.readonly}
3032
?checked=${props.checked}
3133
>${props.slot}</uui-radio
3234
>`;
@@ -50,6 +52,24 @@ Disabled.parameters = {
5052
},
5153
};
5254

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+
5373
export const Checked: Story = props =>
5474
html` <uui-radio value="1" ?checked=${props.checked}>Checked</uui-radio>`;
5575

0 commit comments

Comments
 (0)