Checkbox

Native checkbox with old input, validation, unchecked values and indeterminate state

View documentation

Checkboxes

Inside a hw:field the checkbox inherits the name and derives its id, error key and ARIA wiring. Use field.label for a single line and field.content when the row needs a description.

Marketing updates

At most one email a month.

Submitted values

unchecked-value guarantees the key is present when the box is off. indeterminate is a DOM property the checkbox controller sets — a third visual state, not a third value. Sharing an array name gives each box an id suffixed from its value.

Partially selected

Still submits 1 or nothing — the dash is presentation.

roles[] — ids role-admin, role-editor