Textarea
Multi-line entry on the shared control surface, with a resize affordance that respects the layout.
Live preview
Source
The exact file rendered in the preview above.
components/demos/textarea.tsx
components/ui/input.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
For free-form prose: descriptions, release notes, support messages. Vertical-only resize prevents a user dragging the control wider than its column and breaking the layout.
- Size `rows` to the expected answer. A three-line box invites three lines.
- Pair long-form fields with a character or word budget in the help text rather than a hard `maxLength` that silently truncates.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Default rows
- Invalid
- Disabled
- Vertical resize only
Accessibility
- Resizing
- Resize is not disabled — removing it takes away a genuine accessibility affordance for users with low vision.
- Description
- Help text and errors are associated by Field exactly as they are for Input.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All componentsInput
Single-line text entry with leading and trailing slots, three sizes and a shared control surface used by every other text control.
starter7 variantsField
The accessibility contract shared by every form control — label, help text, error, success and the ARIA wiring that connects them.
intermediateFeatured7 variantsSupport request
Severity, area, reproduction steps and attachments — with the response time shown before submitting.
intermediateFeatured4 variants