Navigation
Menu
A menu is a short list of actions that floats over the page from a button, such as a project's options: Edit project, Export payments, Leave project.
In kanso-ui as Menu
Live in kanso-ui
Menu 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 for 2 to 7 actions on one thing that don't each need a button of their own.
- Don't use it to move between destinations (NavigationBar, NavigationPane, Breadcrumbs) or to choose a value in a form (Select). For one or two actions, show buttons.
- On phones, put the same actions in a Sheet (
k-sheet): menu items are 44px, under the 48px phone minimum.