Component docs
Loading
"use client";
import { TextArea } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
clearLabel | string | — | — |
invalid | boolean | — | Marks the control invalid (aria-invalid); FormField sets it from error. |
onClear | () => void | — | — |
onValueChange | ( value: string, event: ChangeEvent<HTMLTextAreaElement>, ) => void | — | Called with the new value (only when it changes). |
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
clearLabelstring
invalidboolean
Marks the control invalid (aria-invalid); FormField sets it from error.
onClear() => void
onValueChange( value: string, event: ChangeEvent<HTMLTextAreaElement>, ) => void
Called with the new value (only when it changes).
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
Other props are passed to the root element (TextareaHTMLAttributes<HTMLTextAreaElement>), including className, style, id and aria-* attributes.
<TextArea aria-label="Notes" />