Navigation Menu
Neumorphic navigation menu on the Radix primitive. A raised bar of flat chips that sink while their panel is open.
Installation
bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-navigation-menu.jsonUsage
import {
NavigationMenu,
NavigationMenuContent,
NavigationMenuItem,
NavigationMenuLink,
NavigationMenuList,
NavigationMenuTrigger,
} from "@/components/ui/neu/navigation-menu"<NavigationMenu>
<NavigationMenuList>
<NavigationMenuItem>
<NavigationMenuTrigger>Item One</NavigationMenuTrigger>
<NavigationMenuContent>
<NavigationMenuLink href="/docs">Link</NavigationMenuLink>
</NavigationMenuContent>
</NavigationMenuItem>
</NavigationMenuList>
</NavigationMenu>Link Component
Use asChild with navigationMenuTriggerStyle() to give a router link the trigger's styles. Set active on the link for the current page; it sets aria-current="page", which tints the link and sinks a trigger-styled one.
import Link from "next/link"
import { navigationMenuTriggerStyle } from "@/components/ui/neu/navigation-menu"<NavigationMenuItem>
<NavigationMenuLink asChild active className={navigationMenuTriggerStyle()}>
<Link href="/docs">Documentation</Link>
</NavigationMenuLink>
</NavigationMenuItem>Without Viewport
Pass viewport={false} to drop the shared viewport. Each content panel then opens directly under its own trigger as its own overlay sheet.
<NavigationMenu viewport={false}>
<NavigationMenuList>{/* items */}</NavigationMenuList>
</NavigationMenu>Pagination
Neumorphic pagination with the stock shadcn pagination API, built on the button variants. Pages are ghost buttons and the current one is pressed into the surface; Previous and Next are raised keys that go flat at a dead end.
Sidebar
Neumorphic sidebar composed from the neu sheet, tooltip, input, separator, skeleton and button. The panel is its own ground; menu items are flat chips that tint on hover and sink, with an accent bar, when active.