Skip to content

Commit e168d10

Browse files
madsrasmusseniOvergaard
authored andcommitted
docs: add story for readonly mode
1 parent d37861c commit e168d10

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

packages/uui-ref-node/lib/uui-ref-node.story.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const Template: Story = props => html`
3636
?selectable=${props.selectable}
3737
?selectOnly=${props.selectOnly}
3838
?error=${props.error}
39-
?disabled=${props.disabled}>
39+
?disabled=${props.disabled}
40+
?readonly=${props.readonly}>
4041
<uui-tag size="s" slot="tag" color="positive">Published</uui-tag>
4142
<uui-action-bar slot="actions"
4243
><uui-button label="delete"
@@ -201,6 +202,32 @@ Disabled.parameters = {
201202
},
202203
};
203204

205+
export const Readonly: Story = props => html`
206+
<uui-ref-node
207+
?readonly="${props.readonly}"
208+
name="Rabbit Suit Product Page"
209+
detail="path/to/nowhere">
210+
</uui-ref-node>
211+
`;
212+
213+
Readonly.args = {
214+
readonly: true,
215+
};
216+
217+
Readonly.parameters = {
218+
docs: {
219+
source: {
220+
code: `
221+
<uui-ref-node
222+
readonly
223+
name="Rabbit Suit Product Page"
224+
detail="path/to/nowhere">
225+
</uui-ref-node>
226+
`,
227+
},
228+
},
229+
};
230+
204231
const listOfNodeNames: string[] = ArrayOfUmbracoWords(10);
205232
export const Listed: Story = () => html`
206233
<uui-ref-list>

0 commit comments

Comments
 (0)