Components · Form Controls

Textarea

A field for longer text across several lines.

Automated a11y scan passing Element: <textarea>

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Textarea · Canonical Spec

When to use it

Do

  • Keep a visible label.
  • Show a counter when there's a limit.

Don't

  • Use it for short answers. Use Input instead.
  • Cut text off silently at the limit.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly, following the W3C ARIA Authoring Practices Guide.

Interaction / KeyBehavior & Compliance Requirement
TabMoves focus cleanly into and out of the textarea.
Explicit LabelAssociated via <label for="id">.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Surface Fill--as-semantic-color-surface-card
Border (Rest)--as-semantic-color-border-strong
Corner Radius--as-radius-md
Esc
↑↓ navigateEnter openEsc close