Top Navigation 3 – Compact bar with progressive disclosure
- from @shadcncraft
A compact top navigation that keeps the large-screen layout minimal and low-profile, with primary links arranged in a single horizontal bar. Dropdowns reveal richer, icon-led menus only when needed, keeping visual noise down by default. On smaller screens, the same structure expands into a stacked, panel-style menu with nested sections, preserving hierarchy while shifting emphasis to vertical scanning and tap targets.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcncraft/top-navigation-3Registry dependencies6
- button
- navigation-menu
- @shadcncraft/mobile-navigation-menu
- @shadcncraft/placeholder-logo
- @shadcncraft/use-click-outside
- @shadcncraft/use-mobile
Packages0
No npm packages are installed with it.
