Selection
Switch
A switch turns a setting on or off the moment it is touched, with nothing to save, such as reminders for due tasks.
In kanso-ui as Switch
Live in kanso-ui
Switch from kanso-ui as it draws today, in Kanso’s tokens. Press, hover and tab through it: the shapes, the springs and the sizes are the library’s own.
The design
The Kanso design system's own drawing of it, in HTML and CSS with kanso-ui's tokens: the look kanso-ui's component moves to with its family's release.
When to use
- Use it for a setting that takes effect at once: "Remind me about due tasks".
- Don't use it for choices sent later with a form or an action: use Checkbox. For two named modes, like a list or a calendar, use SegmentedControl.