diff --git a/src/components/form-elements/textarea.json b/src/components/form-elements/textarea.json index 4d06510..0ed3733 100644 --- a/src/components/form-elements/textarea.json +++ b/src/components/form-elements/textarea.json @@ -28,6 +28,12 @@ "type": "component", "repeatable": false, "component": "page.details-summary" + }, + "maxLength": { + "type": "integer", + "required": false, + "max": 5000, + "default": 5000 } } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index b5b95de..1182d04 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -278,6 +278,14 @@ export interface FormElementsTextarea extends Schema.Component { 'api::error.error' >; label: Attribute.String; + maxLength: Attribute.Integer & + Attribute.SetMinMax< + { + max: 5000; + }, + number + > & + Attribute.DefaultTo<5000>; name: Attribute.String & Attribute.Required; placeholder: Attribute.String; };