feat(TextArea): adding warn, warnText properties to TextArea

This commit is contained in:
István Pató 2022-01-08 13:24:15 +01:00
commit 3ca9fd5657
No known key found for this signature in database
GPG key ID: 3A842123BFF8E969
3 changed files with 49 additions and 2 deletions

View file

@ -11393,6 +11393,28 @@
"constant": false,
"reactive": false
},
{
"name": "warn",
"kind": "let",
"description": "Set to `true` to indicate an warning state",
"type": "boolean",
"value": "false",
"isFunction": false,
"isFunctionDeclaration": false,
"constant": false,
"reactive": false
},
{
"name": "warnText",
"kind": "let",
"description": "Specify the warning state text",
"type": "string",
"value": "\"\"",
"isFunction": false,
"isFunctionDeclaration": false,
"constant": false,
"reactive": false
},
{
"name": "id",
"kind": "let",

View file

@ -31,6 +31,10 @@ components: ["TextArea", "TextAreaSkeleton"]
<TextArea invalid invalidText="Only plain text characters are allowed" labelText="App description" placeholder="Enter a description..." />
### Warning state
<TextArea warn warnText="It is recommended to enter a longer description" labelText="App description" placeholder="Enter a description..." />
### Disabled state
<TextArea disabled labelText="App description" placeholder="Enter a description..." />