Skip to content

Nav Core

Shared navigation item, group and link primitives used by the other nav blocks.

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-core

Import from the package

Or use it as shipped, without copying.

import { NavCollapse, NavDropdown, NavItem, NavLi } from "@xerobi/ui/nav-core"

Files

  • nav-core/elements.tsx
  • nav-core/index.ts
  • nav-core/link.tsx
  • nav-core/nav-dropdown.tsx
  • nav-core/nav-item.tsx
  • nav-core/types.ts
  • nav-core/utils.ts

Components used

Search documentation

Search pages, components and blocks.