Skip to content
Playground

Textarea

Multi-line native text entry aligned with Input styling.

Multi-line native text entry aligned with Input styling.

TSX
import { Textarea } from "@zentara-co/zenos-ui";

Textarea sizes set a minimum height while preserving native resize and overflow behavior.

Textarea uses the same surfaces as Input: default (standard), filled (subtle), and none (borderless).

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.

TSX
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

PropTypeDefaultDescription
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-*.

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.