Live in kanso-ui

ButtonGroup 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.

Standard: a pressed button widens while its neighbours narrow

Connected, choosing one

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

  • A row, k-btngroup, for the actions on one thing: a task's "Mark as done", "Remind me later" and "Skip".
  • The filled two-up, k-btngroup--fill, when two actions share the width: "Remind me later" and "Skip" under the spotlight's main action, or "Continue" and "Attach file" on the project screen.

Use SegmentedControl to pick one of several options, Chip for filters, and Dialog's own action row (k-dialog__actions) inside a dialog.