v0.1 public beta early access on GitHub
Home / Components / label

LabeliOS

Form label with htmlFor-style nativeID and error styling.

$ npx lumioui add label
import { Label } from "@/components/ui/label/label";
Props5
htmlFor? string Id this label answers to — applied as the label's own nativeID so a control can name it via `accessibilityLabelledBy`/`aria-labelledby`: `<Label htmlFor="email">Email</Label>` + `<Input accessibilityLabelledBy="email" />`. (RN has no htmlFor→focus wiring; the association is the shared id.)
id? string Explicit id for the label node (maps to nativeID, and the DOM id on web).
nativeID? string Own nativeID — wins over id/htmlFor when several are set.
error? boolean Muted/destructive error variant.
className? string NativeWind classes.
Labellabel.tsx
label/label.tsx open

Form label with htmlFor-style nativeID and error styling.