Label
Form label with optional sublabel and description.
Basic
Sublabel
Set sublabel to render muted text inline to the right of the label.
Description
Set description to render helper text in a block below the label.
It should match the name on your passport.
Sublabel and description
Combine sublabel and description for a name, an inline qualifier, and supporting text underneath.
We send order confirmations and shipping updates here.
Required field
Place a colored marker directly in the slot to flag a required field with an asterisk.
Optional field
Set sublabel to "Optional" to mark a non-required field in muted text.
Linking with for
Set for to the input's id so clicking the label focuses the field.
Phoenix form field
Pass a %Phoenix.HTML.FormField{} to for and the label resolves the input id from the field.
Custom styling
Pass utilities through class to override size, weight, or tone.
Rich label content
The default slot accepts arbitrary HEEx, so icons or inline emphasis can sit next to the label text.
Stacked form
Pair labels with native or Fluxon controls to build a full form, with vertical spacing between each label-and-field pair.