Textarea
Multi-line native text entry aligned with Input styling.
Multi-line native text entry aligned with Input styling.
import { Textarea } from "@zentara-co/zenos-ui";Textarea sizes set a minimum height while preserving native resize and overflow behavior.
Variants
Section titled “Variants”Textarea uses the same surfaces as Input: default (standard), filled (subtle), and none (borderless).
States
Section titled “States”Hover, focus, filled, invalid, and disabled treatments match Input. Invalid matches Input (none stays borderless). Set aria-invalid directly or compose with Field.Root invalid.
With Field
Section titled “With Field”import { Field, Textarea } from "@zentara-co/zenos-ui"; <Field.Root> <Field.Label>Investigation notes</Field.Label> <Field.Control render={<Textarea rows={5} />} /></Field.Root>;Textarea follows the shared size, variant, invalid, disabled, required, ref, and native-prop contracts. Use rows or application layout for initial height; content remains scrollable.
Variants
defaultfillednone Sizes
smmdlg API
| Prop | Type | Default | Description |
|---|---|---|---|
variant | default | filled | none | default | Surface treatment (`default` = standard, `filled` = subtle, `none` = borderless). |
size | sm | md | lg | md | Minimum control height. |
aria-invalid | boolean | grammar | spelling | — | Native invalid semantics and styling. |
native props | React.TextareaHTMLAttributes<HTMLTextAreaElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”Textarea preserves native keyboard, selection, resize, and form behavior. Give it a visible label and use Field.Description for guidance. Error text should explain how to correct the value rather than restating that it is invalid.