Forms
Label
A small text label for a form control, with an optional required marker.
Group: Forms. Exports: Label. shadcn/ui equivalent: Label (partial parity).
Usage
import { Label } from "./halaska-kit";
Label props
childrenReactNode: Content.requiredboolean:htmlForany:styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Renders a native label element.
- Pass htmlFor to tie it to a control by id, or place the control inside the label.
- The required marker is a red asterisk hidden from screen readers, so mark the control itself as required too.
Known gaps
- No disabled styling that follows the control.
Used in
Streaming answer, Thinking, Plan preview, Action receipt, Agent setup
Halaska UI · Components · Patterns · Screens · Install