Textarea

A multi-line text field that grows with its content.

Installation

  1. Add the registryOnce per project
  2. Add textarea

Usage

The textarea grows with its content. Cap it with a class such as max-h-60. Like an input, it needs a label, such as a FieldLabel in a Field, or an aria-label.

Examples

Invalid

Set invalid on its Field to mark the textarea as invalid. On its own, set aria-invalid.

Disabled

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.