Text Area

The Text Area component is used for multi-line text input with support for validation states and icons.

Usage

Default


const [value, setValue] = useState("");

<TextArea
  value={value}
  onChange={(e) => setValue(e.target.value)}
  placeholder="Enter your message..."
/>

Props

Sortable data table
PropTypeDefaultDescription
placeholderstring"Enter text"Placeholder text when empty.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme for the textarea.
state"success" | "error" | "warning"-Validation state coloring.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius of the textarea.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow style applied to the container.
outlinebooleanfalseIf true, renders the textarea with an outlined style.
iconReact.ElementType-Optional icon component displayed inside the textarea.
disabledbooleanfalseDisables the textarea.
readOnlybooleanfalseRenders the textarea as read-only.
heightstring-Explicit height for the textarea (e.g. '150px').
resizablebooleantrueIf false, the textarea is not resizable.
ariaLabelstring-Custom ARIA label for accessibility.
ariaDescriptionstring-ARIA description for screen readers.
autoCompletebooleanfalseSets autocomplete.
data-testidstring"text-area"Test ID for the root element (for testing utilities).