This component no longer exists. It was in cubby-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-10 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Navigation-menu
cubby-ui/navigation-menuRemovedComponent
A navigation-menu component.
Live preview
live · rendered by the registry
Rendered by cubby-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://cubby-ui.dev/r/navigation-menu.jsonSource
1import * as React from "react";2import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";3import { cva } from "class-variance-authority";4import { cn } from "@/lib/utils";5import {6 solidSurface,7 type SurfaceLevel,8} from "@/registry/default/lib/elevated";910interface NavigationMenuProps extends React.ComponentProps<11 typeof NavigationMenuPrimitive.Root12> {13 side?: React.ComponentProps<14 typeof NavigationMenuPrimitive.Positioner15 >["side"];16 sideOffset?: React.ComponentProps<17 typeof NavigationMenuPrimitive.Positioner18 >["sideOffset"];19 align?: React.ComponentProps<20 typeof NavigationMenuPrimitive.Positioner21 >["align"];22 alignOffset?: React.ComponentProps<23 typeof NavigationMenuPrimitive.Positioner24 >["alignOffset"];25 collisionPadding?: React.ComponentProps<26 typeof NavigationMenuPrimitive.Positioner27 >["collisionPadding"];28 collisionBoundary?: React.ComponentProps<29 typeof NavigationMenuPrimitive.Positioner30 >["collisionBoundary"];31 arrow?: boolean;32 /** Surface elevation level (1-8) for the bar. Defaults to 2 — subtle toolbar above the page. */33 level?: SurfaceLevel;34 /** Shadow weight (1-8) for the bar. Defaults to 2. */35 shadowLevel?: SurfaceLevel;36}3738function NavigationMenu({39 className,40 children,41 side,42 sideOffset = 10,43 align,44 alignOffset,45 collisionPadding = { top: 5, bottom: 5, left: 20, right: 20 },46 collisionBoundary,47 arrow = false,48 level = 2,49 shadowLevel = 2,50 ...props51}: NavigationMenuProps) {52 return (53 <NavigationMenuPrimitive.Root54 data-slot="navigation-menu"55 data-level={level}56 className={cn(57 "text-foreground min-w-max rounded-xl p-1",58 solidSurface(level, shadowLevel),59 className,60 )}61 {...props}62 >63 {children}64 <NavigationMenuViewport65 side={side}66 sideOffset={sideOffset}67 align={align}68 alignOffset={alignOffset}69 collisionPadding={collisionPadding}70 collisionBoundary={collisionBoundary}71 arrow={arrow}72 />73 </NavigationMenuPrimitive.Root>74 );75}7677function NavigationMenuList({78 className,79 ...props80}: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {81 return (82 <NavigationMenuPrimitive.List83 data-slot="navigation-menu-list"84 className={cn("relative flex", className)}85 {...props}86 />87 );88}8990// … truncated
What it pulls in
npm packages
Other registry items
