Prodular UI

Inputs

Label

A text label for a form control. Inside forms, use FieldLabel, which links itself.

npx prodular-ui add label

Default

With a checkbox or switch

A disabled control dims its label through the peer selector.

Anatomy

<Label htmlFor="company">Company name</Label><Input id="company" />

Guidance

Use it when

  • Labelling a control outside a Field, for example in a toolbar or a custom layout.

Avoid

  • Labels inside forms built with Field. Use FieldLabel.

Rules for AI agents

Published in llms-full.txt and the registry, so coding agents follow them when they build with this component.

  • Always pass htmlFor matching the control id.
  • Place Label right after a Checkbox or Switch so peer-disabled dims it.
  • Labels are 14px medium and sentence case. Do not add uppercase or tracking.

API

Label

PropTypeDefaultDescription
htmlForstringThe id of the control it labels.