Skip to content

Commit b5a4257

Browse files
committed
add story for min length
1 parent 04b8cab commit b5a4257

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ MaxLength.parameters = {
6060
},
6161
};
6262

63+
export const MinLength: Story = props =>
64+
html`<uui-textarea label="Label" minLength=${props.minLength}></uui-textarea>`;
65+
66+
MinLength.args = { minLength: 20 };
67+
MinLength.parameters = {
68+
controls: { include: ['minLength'] },
69+
docs: {
70+
source: {
71+
code: `<uui-textarea label="Label" minLength="20"></uui-textarea>`,
72+
},
73+
},
74+
};
75+
6376
export const Disabled: Story = props =>
6477
html`<uui-textarea label="Label" ?disabled=${props.disabled}></uui-textarea>`;
6578

0 commit comments

Comments
 (0)