Forms
Field
The kit has no separate Field wrapper. TextInput, TextArea and Select carry their own label, and the text fields add a caption and an error message.
Group: Forms. Exports: TextInput, Label. shadcn/ui equivalent: Field (partial parity).
Usage
import { TextInput } from "./halaska-kit";
TextInput 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.errorstring: Error message. Turns the border red and replaces the caption.iconReactNode: Icon shown before the content.disabledboolean: Prevents interaction and dims the control.typestring(default "text"):sizestring(default "md"): Size of the control.styleCSSProperties: Inline style merged onto the root element."aria-label"any:
Label props
childrenReactNode: Content.requiredboolean:htmlForany:styleCSSProperties: Inline style merged onto the root element.
Accessibility
- The built-in label is a native label element. A string label is also set as the control's aria-label.
- TextInput sets aria-invalid when it has an error. The error message replaces the caption but is not linked to the input or announced.
- Label takes htmlFor, so a standalone label can be tied to a control by id.
Known gaps
- No Field, FieldGroup, FieldSet or FieldLegend parts.
- No horizontal or responsive orientation.
- Only TextInput has an error prop. TextArea and Select do not.
- Select takes a label but no caption.
- No required marker on the built-in label. Use Label with required instead.
Used in
Feedback capture, Agent status, Agent setup
Halaska UI · Components · Patterns · Screens · Install