Skip to content

Nav Section

Grouped navigation with section headings and collapsible items.

Install with the CLI

Copy the block into your project to own and change the code.

bunx @xerobi/ui-cli init
bunx @xerobi/ui-cli add nav-section

Also installs: nav-core.

Import from the package

Or use it as shipped, without copying.

import { NavSectionHorizontal, NavSectionMini, NavSectionVertical } from "@xerobi/ui/nav-section"

Files

  • nav-section/classes.ts
  • nav-section/horizontal.tsx
  • nav-section/hover-list.tsx
  • nav-section/index.ts
  • nav-section/mini.tsx
  • nav-section/types.ts
  • nav-section/vertical.tsx

Components used

Search documentation

Search pages, components and blocks.