Selection
Checkbox
A checkbox turns one option on or off, alone or in a group where any number can be chosen, and a parent checkbox selects a whole list at once.
In kanso-ui as Checkbox
Live in kanso-ui
Checkbox 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.
Files to delete
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 to choose any number of options, or to confirm one statement, when the choice applies on save or with an action, like the files a bulk delete will remove.
- Don't use it for a setting that applies at once: use Switch. For one choice among several, use RadioGroup; to filter a list by a few values, Chip.