Switch

Native ARIA switch with old input, optional unchecked value and auto-submit

View documentation

Switch rows

A native checkbox with role="switch", so it submits and validates like one. size takes default or sm.

Push notifications

Receive alerts on this device.

Enforce SSO

Managed by your identity provider.

unchecked-value

An unchecked checkbox submits nothing. unchecked-value renders a hidden input ahead of the switch so the key is always present — the difference between "off" and "not sent".

Marketing emails

Posts marketing=0 when off instead of omitting the key.

Choice card

Wrap the whole hw:field in a hw:field.label to make the card clickable. The preset then styles checked, disabled and invalid from the field and switch state.

auto-submit

Switches are discrete controls, so they submit immediately on change rather than waiting out a debounce.

Compact layout

Toggling reloads the frame below straight away.

Compact layout is off.