Skip to content

Commit a9e7570

Browse files
committed
docs(storybook): add dynamic default slot
1 parent f8400b0 commit a9e7570

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ export default {
99
id: 'uui-label',
1010
title: 'Inputs/Label',
1111
component: 'uui-label',
12+
args: {
13+
slot: 'Label',
14+
},
15+
argTypes: {
16+
slot: {
17+
control: { type: 'text' },
18+
},
19+
},
1220
};
1321

1422
const Template: Story = props => html`
1523
<uui-label ?disabled=${props.disabled} ?required=${props.required}
16-
>Label</uui-label
24+
>${props.slot}</uui-label
1725
>
1826
`;
1927

0 commit comments

Comments
 (0)