Client component

Textarea

A multi-line text field with variants, character count, and Field integration.

29/200

Import#

import { Textarea } from "astralis-ui";
// also available as Input.TextArea

Auto-grow#

autoGrow lets the field grow with its content instead of scrolling. It uses the CSS field-sizing property, so there is no resize listener; rows sets the starting height. Browsers without field-sizing keep a normal scrolling textarea.

Props#

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Text and padding scale.
variant"outline" | "filled" | "underline" | "unstyled""outline"Visual style.
rowsnumber4Initial visible lines.
autoGrowbooleanfalseGrows with its content instead of scrolling, using CSS field-sizing with no JavaScript. rows becomes the minimum height.
showCountbooleanfalseCharacter counter (pairs with `maxLength`).
invalid / disabled / readOnlybooleanfrom [Field](/docs/components/field)State plumbing.

Inside a Field, the label association, required, and help/error aria-describedby wiring all come for free.