Skip to content

Textarea

Form textarea or textarea-styled component.

Installation

Usage

Controlled

Control the value with value and onChange.

Character count: 0

States

Disabled

Disable the textarea with the disabled prop. Use Field with disabled to disable the whole field (label + textarea).

Invalid

Use the invalid prop on Field or Textarea to show invalid state.

Please provide at least 20 characters.

Examples

Autoresize

Use autoresize to make the textarea grow with content.

With Field

Wrap the textarea in a Field and add FieldLabel and FieldDescription.

Add a short message to include with your submission.

With Input Group

Use FieldGroup to group multiple Field blocks. Combine textarea with other inputs and action buttons.

script.js

Form Integration

API Reference

Textarea

Multi-line text input. Accepts all native textarea attributes.


For a complete list of props, see the Ark UI documentation.