Selection
Segmented control
A pill of two to five segments with exactly one selected, used to switch the view below it or the kind of thing a form adds.
In kanso-ui as SegmentedButton
Live in kanso-ui
SegmentedButton 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
- To filter the content below at once: the timeline by All, Payments, Sessions, Events and Tasks.
- To set what a form is about before it is filled in: the form's Payment, Task, Event and Session.
Use Chip when several filters can be on together, Tabs to move between pages of content, Switch for on and off, and Select for more than five options or long labels.