apps/design-system/content/docs/components/nav-menu.mdx
<ComponentPreview name="nav-menu-demo" className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]" peekCode wide />
NavBar is exclusively used as sub-navigation within PageLayout.
import { NavMenu, NavMenuItem } from 'ui'
<NavMenu>
<NavMenuItem active={true}>
<Link href="#">Overview</Link>
</NavMenuItem>
<NavMenuItem active={false}>
<Link href="#">Documentation</Link>
</NavMenuItem>
</NavMenu>
You may include counter badges to indicate the number of items within a tab, for example the amount of buckets in storage.
<ComponentPreview name="nav-menu-badges" className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]" />
You may include icons to more clearly represent the content of each tab. Every tab should have an icon (or no icon).
<ComponentPreview name="nav-menu-icons" className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]" />