⌘ K

Navigation

A familiar path through every workspace.

Neutral navigation items with badges and expandable groups.

Interactive playground

LIVE PREVIEW
Loading preview…

Props

Navigation label.

Neutral or blue-accent appearance.

Mark the current destination.

Optional count or status.

Show an expandable group.

Initial expanded state.

Generated code
import { NavItem } from '@vrum/ui';
import { Home } from 'lucide-react';

<NavItem
  label={"Projects"}
  active={true}
  variant={"neutral"}
  badge={"8"}
  expandable={false}
  defaultExpanded={false}
  icon={<Home size={18} />}
/>
Copy code

NavItem props

PropTypeDefaultDescription
iconReact.ReactNode | LucideIconnoneicon configuration.
label*stringnoneNavigation label.
hrefstringnonehref configuration.
activebooleannoneMark the current destination.
variant"default" | "neutral""neutral"Neutral or blue-accent appearance.
badgeReact.ReactNodenoneOptional count or status.
expandablebooleannoneShow an expandable group.
expandedbooleannoneexpanded configuration.
defaultExpandedbooleanfalseInitial expanded state.
onClick(() => void)noneCalled when the control is activated.
childrenReact.ReactNodenoneContent rendered inside the component.
classNamestringnoneAdditional CSS classes.