Switch
A button-based switch with native checkbox-backed submission, validation and reset.
Keyboard and focus
The native button toggles on Enter/Space. Its role and aria-checked communicate state; disabled prevents activation. The forwarded button ref supports programmatic focus.
Installed release limits
The ref is a button, not the hidden checkbox. Callback is boolean, not a native change event. Persistence, service errors and immediate-save policy remain application-owned.
All exports