Switches and setting rows
0 of 5 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.
Planned 5
Switch with Confirmation Guard
Guarded transition in one direction only: turning on is instant, turning off opens an alert dialog that states the consequence, and cancelling returns focus to the switch with its state untouched.
Switch Group with Master Toggle
Hierarchical: turning the master off disables the child rows visually and with aria-disabled while remembering their values, and the header shows an 'n of m on' summary.
Switch with Pending State
Async lifecycle built in: optimistic toggle, aria-busy during save, a 'Saved' confirmation announced politely, and automatic revert on failure with a recovery action.
Plan-locked Switch Row
Replaces the disabled affordance with an explained lock: the switch stays focusable with aria-disabled, the reason is linked through aria-describedby and the row adds an upgrade action.
Switch with Dependent Fields
The switch gates dependent controls: the panel is indented under the row, linked with aria-controls, and when off it is hidden so its fields leave the tab order while keeping their values.