Switch
Use the Switch to let users toggle a setting between on and off. The change
takes effect immediately without requiring a separate confirmation step.
When to use
- To toggle a setting on or off.
- When an immediate action is triggered by the change, without requiring a separate confirmation step.
When not to use
- When users need to select multiple items from a list.
- When no immediate action is triggered. For example, a selection must be confirmed by a further step, like a "Submit" button in a form. Use Checkbox instead.