Components
Textarea
A multi-line text field with the same sizes and states as Input.
Server componentNo state or handlers. Safe to render in a Server Component.
import { Textarea, textareaVariants } from "@glob-ui/textarea"Preview
Examples
With a Field
Description text is linked to the textarea with aria-describedby.
Max 200 characters.
API
Props are generated from the TypeScript types in the package source.
TextareaProps
Prop
Type
Accessibility
| Key or action | Behaviour |
|---|---|
| Tab | Focuses the textarea. |
| Enter | Inserts a line break (native behaviour). |
ARIA. A native <textarea>. Give it a name with Field or aria-label.