Skip to content

Commit a7001f5

Browse files
madsrasmusseniOvergaard
authored andcommitted
docs: readonly state for checkbox
1 parent 5e3cbdc commit a7001f5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default {
1515
label: 'label',
1616
labelPosition: 'right',
1717
disabled: false,
18+
readonly: false,
1819
checked: false,
1920
'--uui-checkbox-size': '18px',
2021
},
@@ -42,6 +43,7 @@ export const AAAOverview: Story = props => html`
4243
.label=${props.label}
4344
.labelPosition=${props.labelPosition}
4445
?disabled=${props.disabled}
46+
?readonly=${props.readonly}
4547
?checked=${props.checked}
4648
>${props.slot}</uui-checkbox
4749
>
@@ -157,3 +159,19 @@ Disabled.parameters = {
157159
},
158160
},
159161
};
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+
};

0 commit comments

Comments
 (0)