Switch

A toggle switch for instant on/off settings. A visually-hidden native checkbox carries the form value and keyboard focus, while the track and thumb mirror its state — exposed as role="switch" with aria-checked. The thumb glides on toggle and snaps under prefers-reduced-motion. Controlled or uncontrolled via checked / defaultChecked.

Default — off / on (uncontrolled)

Controlled

checked = true

With described hint (aria-describedby)

Routes signals through the OCSS Trust Framework preview lane.

Invalid

A conformance attestation is required before this can be enabled.

Disabled — off / on

No label (provide an external aria-label)