Menu
A pure CSS navigation menu — no JS behavior of its own. Renders a <nav>; lay out .menu-section/.menu-list yourself and compose rows with MenuItem/MenuLink.
Usage
import { Menu, MenuItem, MenuLink } from '@mav-labs-inc/mavkit-react'
<Menu aria-label="App navigation">
<ul className="menu-list" role="list">
<MenuItem active>
<MenuLink href="#" current>Overview</MenuLink>
</MenuItem>
<MenuItem disabled>
<MenuLink href="#" disabled badge="Soon" badgeNeutral>Changelog</MenuLink>
</MenuItem>
</ul>
</Menu>Examples
Vertical, with a section
Horizontal
Props
Menu
Renders a <nav> and accepts every native <nav> attribute in addition to the props below.
MenuItem
Also accepts every native <li> attribute.
MenuLink
Also accepts every native <a>/<button> attribute (whichever as renders).
Styling a custom element as a menu root
import { menuClasses } from '@mav-labs-inc/mavkit-react'
<div className={menuClasses({ variant: 'multicol' })}>…</div>Last updated on