Navigation menu
A site header's menu whose triggers share one panel that travels and resizes as you move along.
npx shadcn add https://kinoui.com/r/navigation-menu.jsonCopy install command
Examples
Project planning
Plan the work, then watch it ship.
Boards, cycles and an inbox for every team, on one bill.
Default
The panel grows out of its trigger, then travels and resizes as you move along, with new content sliding in from the side you moved towards.
Lists of links
A highlight glides between the links of a panel, across headings and gaps, and icons brighten as it arrives.
Links beside triggers
A NavigationMenuLink in the list looks like a trigger and has no panel, and the one marked active keeps a tint; a disabled trigger is skipped.
Slide distance
Set how far new content travels with --navigation-menu-slide, on a panel or on <body>.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/navigation-menu.json- Files
lib/refs.tslib/reduce-motion.tslib/scroll.tslib/popup.tslib/glide.tsxlib/resize.tslib/run-progress.tslib/highlight.tscomponents/kino/navigation-menu.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
NavigationMenu
NavigationMenuContent
NavigationMenuLink
Data attributes
CSS variables
Accessibility
- The menu is a
navlandmark: give it anaria-labelwhen the page has more than one. - Each trigger is a button with
aria-expanded; links are links, so the menu reads as site navigation, not an app menu. - Arrow keys move between the triggers and between the links of a panel; Tab goes from a trigger into its panel and on.
- Escape closes the panel and puts focus back on its trigger.
- On a touch screen, a tap opens a panel and a second tap closes it.
- When the system asks for less motion, the panel and the highlights only fade.