Switch
Component preview
An on or off control for a setting whose change takes effect immediately.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: toggle switch, on-off switch, settings toggle
Try it
Compare all three behaviors
Shared comparison scenario: A settings flow asks the user to make a choice and understand whether it is independent, exclusive, or applied immediately.
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Switch
Switch applies one setting immediately; Checkbox usually records a choice for later submission, and Radio group chooses one value among alternatives.
Your task
Toggle the setting with pointer and Space and observe the preview update without saving.
Edge case to verify
If persistence fails, the switch returns to its prior state and an inline status explains the failure.
Mission
Toggle the setting with pointer and Space and observe the preview update without saving.
Applies every change as you type.
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Label
The persistent text that names a control or field.
Checkbox represents an independent choice that may wait for submission; Radio group enforces one choice, while Switch applies an on or off setting immediately.
CheckboxRadio group permits exactly one choice; Checkbox choices are independent, while Switch changes one immediate on or off setting.
Radio groupApply immediately
Changing the on or off state takes effect immediately and does not wait for form submission.
Toggle on activation
Activating the trigger opens the surface, and activating it again can close it.
Setting off
Setting off
Setting on
Setting on
Setting off → Setting on
Pointer, touch, or Space turns the setting on and applies it immediately.
Setting on → Setting off
Pointer, touch, or Space turns the setting off and applies it immediately.
Switch.Root
Equivalence caveat: Radix Switch exposes on and off state, but the setting must take effect immediately and still needs a visible label.
Verify binding sourceW3C WAI · standard · 2026-07-16
Claim covered: Switch: switch role, stable label, binary state, and keyboard interaction guidance.
Radix Primitives · documentation · 2026-07-16
Claim covered: Switch: documented Radix Switch parts, checked state, labeling integration, and keyboard behavior.
Verified on 2026-07-16 · rev. 1