AsterUIDocsv1.0.2

Docs / Component reference

NavigationMenu

Arrange related destinations beneath a top-level link when a single flat list would be hard to scan.

Navigation menu example

Install

sh
npx @fierst/ui@1.0.2 add navigation-menu

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/navigation-menu: NavMenuSection, NavigationMenu.

Download the registry source for navigation-menu 1.0.2.

API contracts

ts
export interface NavMenuSection {
  id: string;
  label: string;
  links: readonly { title: string; description: string; href: string; icon?: LucideIconInput }[];
}

export function* NavigationMenu(
  props: {
    sections: readonly NavMenuSection[];
    class?: string;
  },
  ctx: Ctx,
)