Navigation
Navigation bar
The navigation bar is the row of three to five destinations at the bottom of a phone screen; use it to move between a product's top-level sections.
In kanso-ui as NavigationBar
Variants and sizes
- Five destinations:
k-navbaras it is. - Three or four destinations: set
--k-nav-count: 3or4onk-navbar. - There is no icon-only bar and no accent bar: labels stay visible and selection stays ink.
States
- Rest: icon and label in
ink-muted, outlined icon, label at weight 500. - Hover: the pill fills with
surface-sunken. - Current (
aria-current="page"): aninkpill, a filled icon (k-icon--fill) inon-ink, and the label ininkat weight 700. Fill, icon fill and weight all change, so the state never rests on colour. - Focus: the 2px
focus-ring, 2px outside the item, following itsradius-mdcorners. - Disabled: none. Every destination stays reachable; a section with nothing in it shows an EmptyState.
Do and don’t
Do
Keep the same destinations in the same order on every screen and window size.
Use one-word labels in sentence case.
Fill the icon of the current destination only.
Don’t
Hide the labels, even on small phones.
Add a sixth destination, or an action such as Add.
Paint the pill with
accent: ink is selection, and the accent is kept for the one highlighted action.
What you provide
- 3 to 5 destinations, each with a label, a Material Symbols icon name (
home,payments,timer,event,checklist) and a link or route. - Which destination is current.
- The landmark's name, "Main".