Skip to content

Commit 6cbeca0

Browse files
madsrasmusseniOvergaard
authored andcommitted
docs: update storybook with story for readonly state
1 parent 23c6d2c commit 6cbeca0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,27 @@ Disabled.parameters = {
157157
},
158158
};
159159

160+
export const Readonly: Story = props =>
161+
html`<uui-select
162+
.options=${preselectedOptions}
163+
label="Label"
164+
.placeholder=${props.placeholder}
165+
.readonly=${props.readonly}></uui-select>`;
166+
167+
Readonly.args = {
168+
readonly: true,
169+
};
170+
171+
Readonly.parameters = {
172+
controls: { include: ['readonly'] },
173+
docs: {
174+
source: {
175+
code: `
176+
<uui-select readonly></uui-select>`,
177+
},
178+
},
179+
};
180+
160181
export const Error: Story = props =>
161182
html`<uui-select
162183
.options=${options}

0 commit comments

Comments
 (0)