Label
Names a control. Written in the village's control type: Iwa capitalises it. Inside a Field, use FieldLabel, which is linked for you.
Installation
Or with the shadcn CLI, from the registry:
Usage
Villages
The label takes the village's control font, weight, tracking and case: mono capitals in Iwa.
Accessibility
- A
<label>:htmlFornames the control with the sameid, and a click on the label focuses or toggles it. - A label next to a disabled control (
peer-disabled) or inside a disabled group dims with it.
API reference
The props of <label>, plus className. labelStyles holds its classes, which FieldLabel shares.