Checkbox
Boolean input with single, group, and card variants.
Basic
Sublabel and description
Use sublabel for a short inline qualifier and description for longer copy beneath the label.
We'll send you important updates about your account status and security.
Hear about new features, launches, and the occasional sale.
Link in description
Pass a custom inner block to the card variant when the description needs <.link> or other components. The block replaces the default label and description layout.
Custom values
Override checked_value and unchecked_value when the schema expects 1/0 or tokens like yes/no.
Submitted as 1 when checked, 0 when unchecked.
Standalone toggle
Pair name with checked to drive a LiveView event handler without a backing schema.
Disabled
Errors
When bound via field, validation errors render beneath the checkbox once the field has been used.
Group
Collect several selections into a single form field. checkbox_group appends [] to the name and keeps the field present in form data even when nothing is selected.
Group with per-option detail
Each :checkbox slot can carry its own sublabel, description, and disabled flag.
Card variant
Set variant="card" to turn each row into a tappable surface that highlights when checked.
Control position
On the card variant, control="left" leads with the checkbox; control="right" trails it so the label carries the visual weight.
Card group
Card surfaces compose with checkbox_group for compact multi-column pickers.
Custom card content
Provide an inner block on each :checkbox slot to replace the default label structure with icons, badges, or any layout you need.
Weekday picker
Omit the control attribute on a card so the surface itself reflects the checked state, leaving room for compact icon-only pickers.
The days you are available for new work.
Tag picker
The same custom-content pattern, but as pill-shaped wrap-and-flow cards for tagging UIs.
Apply any that fit.