Skip to content

Commit 97a1261

Browse files
committed
docs(text-area): add "Warning state" example
1 parent 367d607 commit 97a1261

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/pages/components/TextArea.svx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ Indicate an invalid state with an error message by setting `invalid` to `true` a
5151

5252
<TextArea invalid invalidText="Only plain text characters are allowed" labelText="App description" placeholder="Enter a description..." />
5353

54+
## Warning state
55+
56+
Indicate a warning state with a message by setting `warn` to `true` and providing `warnText`.
57+
58+
<TextArea warn warnText="This description is shorter than recommended" labelText="App description" placeholder="Enter a description..." />
59+
5460
## Disabled state
5561

5662
Disable the textarea to prevent user interaction by setting `disabled` to `true`.

0 commit comments

Comments
 (0)