A multi-line text field with the same label and validation API as Input.
import { Textarea } from "kivu-ui"On this page
import { Textarea } from "kivu-ui";import { Textarea } from "kivu-ui";
export default function Demo() {
return <Textarea label="Brief" placeholder="What does the client need?" wrapperClassName="w-full max-w-md" />;
}Extends all <textarea> attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | - | Field label, wired to the control with htmlFor. |
labelPosition | "inside" | "outside" | "inside" | Small label inside the box, or a regular label above it. |
description | ReactNode | - | Helper text; linked via aria-describedby. |
error | ReactNode | boolean | - | Error message (or true for just a red border). Sets aria-invalid. |
variant | "default" | "filled" | "glass" | "default" | Visual style. Glass is for brand or image backgrounds. |
wrapperClassName | string | - | Class for the outer wrapper. className goes to the control itself. |
rows | number | 4 | Visible rows. |
className | string | - | Extra classes; Tailwind utilities override the component's styles. |
Every component also accepts className and forwards its ref. Root CSS class: .kivu-field