Top Navigation 5 – Minimal center-aligned links with inline auth
- from @shadcncraft
A stripped-back, center-aligned top navigation that prioritizes clarity and whitespace. Primary links sit in a single horizontal row with the brand anchored to the left and a lightweight login action on the right. On small screens, the layout collapses into a simple slide-out menu with stacked links and a single secondary action, keeping the structure familiar while reducing visual noise.
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-5Registry dependencies4
- button
- @shadcncraft/placeholder-logo
- @shadcncraft/use-click-outside
- @shadcncraft/use-mobile
Packages0
No npm packages are installed with it.
