Show design guidelines
A text area lets a user input a longer amount of text than a standard text field. It can include all of the standard validation options supported by the text field component.
Framework HTML React Angular
cols
Attribute colsType numberDefault undefinedRequired falseDescription Visible width of the textarea in characters.
disabled
Attribute disabledType booleanDefault falseRequired falseDescription Prevents user interaction.
maxlength
Attribute maxlengthType numberDefault undefinedRequired falseDescription Maximum number of characters allowed.
name
Attribute nameType stringDefault this.textareaIdRequired falseDescription Form control name, used for form submission and validation events.
placeholder
Attribute placeholderType stringDefault undefinedRequired falseDescription Placeholder text shown when empty.
readonly
Attribute readonlyType booleanDefault falseRequired falseDescription Prevents editing while allowing selection and copy.
required
Attribute requiredType booleanDefault falseRequired falseDescription Marks the field as required for form validation.
rows
Attribute rowsType numberDefault undefinedRequired falseDescription Number of visible text rows.
size
Attribute sizeType "md" | "sm"Default 'md'Required falseDescription Visual size variant of the textarea.
value
Attribute valueType stringDefault undefinedRequired falseDescription Current value of the textarea.
Name Description Bubbles certaraBlurEmitted when the textarea loses focus. truecertaraChangeEmitted when value changes from the previous value. truecertaraFocusEmitted when the textarea gains focus. truecertaraFormControlErrorEmitted when validation state changes. Payload is the error message or empty string when valid. truecertaraInputEmitted on every keystroke. true
Name Signature Description setBlur() => Promise<void>Programmatically blurs the textarea. setError(error: string) => Promise<void>Sets a custom error message. This allows consumers to call textarea.setError('my error message'). setFocus() => Promise<void>Programmatically focuses the textarea.
There are no slots available for this component