diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 1d907713..643d8e87 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -11509,6 +11509,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", diff --git a/docs/src/pages/components/TextArea.svx b/docs/src/pages/components/TextArea.svx index a2babc64..afebb90a 100644 --- a/docs/src/pages/components/TextArea.svx +++ b/docs/src/pages/components/TextArea.svx @@ -31,6 +31,10 @@ components: ["TextArea", "TextAreaSkeleton"] - {#if !invalid && helperText} + {#if !invalid && !warn && helperText}
{invalidText}
{/if} + {#if !invalid && warn} +
{warnText}
+ {/if}