Forms
Textarea
A multi-line text input for longer form content. Supports all native textarea attributes with consistent styling.
Import
import { Textarea } from "@mikenotthepope/substrateui"Disabled
With Field
Max 500 characters.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Placeholder text shown when the textarea is empty. |
disabled | boolean | false | When true, prevents interaction and reduces opacity. |
rows | number | — | Native rows. The box grows with its text from an 80px floor to 18 lines, so rows sets nothing where `field-sizing` is supported; a fixed `h-*` class still holds it. |
className | string | — | Additional CSS classes to apply to the textarea element. |