LifeDS

Components

Component

Label

Accessible label for form controls. Pairs with any input via htmlFor, or wraps the control directly. For full form fields with description and error handling, prefer Field + FieldLabel instead.

htmlForassociates label with a control by id
data-disableddims label when the control is disabled
Playground

Basic — paired with an input

With checkbox

With switch

With radio group

With textarea

Required indicator

Disabled state

ancestor with data-disabled dims the label text
wrapping a disabled checkbox

RTL support

Tokens used

2 semantic tokens consumed by this component.

--foregroundForeground
text-foreground
--muted-foregroundMuted Foreground
text-muted-foreground