Skip to content

Mega Menu

Multi-column navigation menu for the top bar.

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 mega-menu

Also installs: nav-core.

Import from the package

Or use it as shipped, without copying.

import { MegaMenuHorizontal, MegaMenuMobile, MegaMenuVertical } from "@xerobi/ui/mega-menu"

Files

  • mega-menu/classes.ts
  • mega-menu/components.tsx
  • mega-menu/horizontal.tsx
  • mega-menu/index.ts
  • mega-menu/mega-nav-list.tsx
  • mega-menu/mobile.tsx
  • mega-menu/types.ts
  • mega-menu/vertical.tsx

Components used

Search documentation

Search pages, components and blocks.