Skip to content

Commit

Permalink
docs: docs for readonly for uui-card-content-node
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Aug 28, 2024
1 parent 9b97095 commit a4bbfae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/uui-card-block-type/lib/uui-card-block-type.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const AAAOverview: StoryFn = props => html`
?selected=${props.selected}
?error=${props.error}
?disabled=${props.disabled}
?readonly=${props.readonly}
href=${props.href}
target=${props.target}
rel=${props.rel}>
Expand Down Expand Up @@ -351,4 +352,31 @@ Disabled.args = {
disabled: true,
};

export const Readonly: StoryFn = props => html`
<uui-card-block-type
name=${props.name}
description=${props.description}
background=${props.background}
?selectable=${props.selectable}
?selected=${props.selected}
?error=${props.error}
?disabled=${props.disabled}
?readonly=${props.readonly}
href=${props.href}
target=${props.target}
rel=${props.rel}>
${renderWandIcon()}
</uui-card-block-type>
`;

Readonly.args = {
name: 'The Block Name',
description: 'This block seems to be readonly!',
selectable: false,
selected: false,
error: false,
disabled: false,
readonly: true,
};

export default meta;

0 comments on commit a4bbfae

Please sign in to comment.