Skip to content
← Inventory

Textarea

Renders a textarea element for multi-line text input.

Usage

import { Textarea } from "@desk/ui/components/textarea";

Best practices

  • Unlike Input, Textarea does not inherit an ancestor Field's invalid state — pass hasError explicitly to show the error styling.

  • It auto-grows with content (field-sizing-content); set rows for an initial height rather than pinning height via CSS.

  • Associate a Label (via Field/htmlFor) — a placeholder is not an accessible name.

Props

PropTypeDefaultDescription
hasErrorboolean

Show error styling

testIdstring