Skip to content

Textarea

Free

A field for text on many lines, such as a message. It grows with the text from 64px to 240px, then scrolls.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put it in a Field, so the label and the error link to it. The box grows with the text and then scrolls.

The sample also uses Field. One command adds them with this item:

support-message.tsx

Textarea

<textarea>
PropTypeDefaultDescription
surface"default""group"—
classNamestring—
size"default""lg""sm"—The padding of the box: sm, default, or lg (the height follows the text).
From Base UIField.ControlBase UI docs
onValueChange—Callback fired when the value changes. Use when controlled.
...props<textarea> attributes—Every other attribute goes to the <textarea>, with a ref.
  • Use it for text of more than one line, such as a comment or a note.
  • Put it in a Field to add a label, help text, and validation.
  • Use InputGroupTextarea when the box needs a toolbar or a header row.
  • For one line of text, use an Input.
  • For free text that turns into tags, use a Tags Input.
TabMoves focus into or out of the field.
EnterAdds a new line.

It is a Base UI Field.Control, a native <textarea>, so a Field labels it.

A read-only box has a muted fill. People can still select and copy the text.

A browser with no field-sizing keeps a 64px box with a vertical handle.

  1. AddedTextarea.
Open the release