Skip to content
Components / Controls

Label

The visible name of a control.

@fabrials/ui
Loading state

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { Label } from "@fabrials/ui";
  2. Or install it under shadcn's name, so code that imports @/components/ui/label gets this control. See shims.

    npx shadcn@latest add @fabrials/label

API reference

Prop / exportTypeDescription
htmlForstringId of the control this name belongs to.

Behavior

Field renders the label for you when the control has a hint or an error.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.