Skip to content

NavigationMenu

Category: Navigation

<NavigationMenu label="Sidebar">
<NavigationMenu.Group allowsMultipleExpanded defaultExpandedKeys={new Set(['design'])}>
<NavigationMenu.Section id="design" title="Design">
<NavigationMenu.Item href="/components" active>
Components
</NavigationMenu.Item>
<NavigationMenu.Item href="/tokens">Tokens</NavigationMenu.Item>
</NavigationMenu.Section>
<NavigationMenu.Section id="dev" title="Dev">
<NavigationMenu.Item href="/install">Install</NavigationMenu.Item>
</NavigationMenu.Section>
</NavigationMenu.Group>
</NavigationMenu>

Install: @helix-ui/core

import { NavigationMenu } from '@helix-ui/core';

status: stable · since: 0.1.0

Tags: nav, collapsible, side, sections

▾ Section
• Item
• Item
▸ Section (collapsed)
▾ Section
• Item
  • display — block
  • width — fill
  • height — content
  • intrinsicSize — vertical list with collapsible sections
  • stackable — true
  • fullBleed — false

A vertical list with sections that can collapse. Section headers show a chevron and bold label; items are pill-shaped with active state.

Name Type Default Description
label string Main Accessible name on the wrapping <nav>.
...rest HTMLAttributes<HTMLElement> — Native nav attributes.
  • NavigationMenu.Group — DisclosureGroup; allows multiple sections to be open at once
  • NavigationMenu.Section — Disclosure; pass title and children
  • NavigationMenu.Item — <a> with active flag → renders aria-current="page"

color.bg.action.neutral.default, color.bg.action.brand.subtle, color.text.primary, color.text.secondary, color.text.action.brand, color.border.focus, radius.md, space.1, space.2, space.3, font.family.sans, font.size.sm, font.weight.medium

Notes

  • Sections use react-aria’s Disclosure — keyboard, ARIA expanded/controls, focus all handled.
  • Mark the active link with active prop; helix-ui sets aria-current="page".
Component Relation Note
Sidebar alternative Sidebar is the structured rail with header/footer; NavigationMenu is the bare collapsible list.
Breadcrumb sibling
Tabs sibling

These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.

“collapsible side nav with two sections”

<NavigationMenu>
<NavigationMenu.Section title="Getting started">
<NavigationMenu.Item href="/install">Install</NavigationMenu.Item>
</NavigationMenu.Section>
<NavigationMenu.Section title="Components">
<NavigationMenu.Item href="/components/button">Button</NavigationMenu.Item>
</NavigationMenu.Section>
</NavigationMenu>