Textarea

Displays a form textarea or a component that looks like a textarea.

Use Field to compose a label, helper text, and validation message around this control.

Usage

Disabled

With label

With helper text

Your message will be copied to the support team.

With button

Props

PropTypeDefaultDescription
placeholderstring-Placeholder text
valuestring-Controlled value
defaultValuestring-Default value for uncontrolled usage
onChange(e: React.ChangeEvent<HTMLTextAreaElement>) => void-Callback when the value changes
disabledbooleanfalseWhether the textarea is disabled
readOnlybooleanfalseWhether the textarea is read-only
errorboolean | { message: string }falseError state or error message
idstring-HTML id attribute for label association
rowsnumber-Number of visible text lines
classNamestring-Additional CSS classes to apply