Skip to content

Commit 0f39305

Browse files
committed
add story for error
1 parent b5a4257 commit 0f39305

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
@@ -134,3 +134,16 @@ AutoHeight.argTypes = {
134134
'--uui-textarea-min-height': { control: { type: 'text' } },
135135
'--uui-textarea-max-height': { control: { type: 'text' } },
136136
};
137+
138+
export const Error: Story = props =>
139+
html`<uui-textarea label="Label" ?error=${props.error}></uui-textarea>`;
140+
141+
Error.args = { error: true };
142+
Error.parameters = {
143+
controls: { include: ['error'] },
144+
docs: {
145+
source: {
146+
code: `<uui-textarea label="Label" error></uui-textarea>`,
147+
},
148+
},
149+
};

0 commit comments

Comments
 (0)