diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index a57ead6f..aa2c7fb4 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4113,6 +4113,7 @@ None. | placeholder | let | No | string | "" | Specify the placeholder text | | cols | let | No | number | 50 | Specify the number of cols | | rows | let | No | number | 4 | Specify the number of rows | +| maxCount | let | No | number | undefined | Specify the max character count | | light | let | No | boolean | false | Set to `true` to enable the light variant | | disabled | let | No | boolean | false | Set to `true` to disable the input | | readonly | let | No | boolean | false | Set to `true` to use the read-only variant | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 1d907713..b6ae7210 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -11421,6 +11421,16 @@ "constant": false, "reactive": false }, + { + "name": "maxCount", + "kind": "let", + "description": "Specify the max character count", + "type": "number", + "isFunction": false, + "isFunctionDeclaration": false, + "constant": false, + "reactive": false + }, { "name": "light", "kind": "let", diff --git a/types/TextArea/TextArea.svelte.d.ts b/types/TextArea/TextArea.svelte.d.ts index a649eb52..fab23273 100644 --- a/types/TextArea/TextArea.svelte.d.ts +++ b/types/TextArea/TextArea.svelte.d.ts @@ -27,6 +27,12 @@ export interface TextAreaProps */ rows?: number; + /** + * Specify the max character count + * @default undefined + */ + maxCount?: number; + /** * Set to `true` to enable the light variant * @default false