Forms
Textarea
A multi-line text field with a built-in label and caption. It resizes vertically. Exported as TextArea and as Textarea.
Group: Forms. Exports: TextArea. shadcn/ui equivalent: Textarea (partial parity).
Usage
import { TextArea } from "./halaska-kit";
TextArea props
valueany: The controlled value.onChange(value) => void: Called with the new value.placeholderstring: Hint shown while empty.labelstring: Visible label.captionstring: Helper text under the control.rowsnumber(default 3):disabledboolean: Prevents interaction and dims the control.styleCSSProperties: Inline style merged onto the root element."aria-label"any:
Accessibility
- Renders a native textarea.
- A string label becomes its aria-label. The visible label is not tied to it with an id.
- Focus is shown by a border change rather than a ring.
Known gaps
- No error or invalid state.
- No automatic growth with content.
Halaska UI · Components · Patterns · Screens · Install