A collection of modern, responsive, and accessible navbar designs built with Next.js (App Router), TypeScript, Tailwind CSS, and Framer Motion.
Each navbar example is completely self-contained with its own folder, components, and demo page — perfect for learning, customization, or copy-pasting into your own projects.
https://nextjs-navbar-gallery.vercel.app
- ⚡ Built with Next.js App Router
- 🎨 Styled using Tailwind CSS
- 🧠 Animated with Framer Motion
- 🔒 Accessible & mobile-friendly
- 🧩 Each navbar variant is self-contained (
app/(examples)/navbars/type/variant) - 📚 Gallery homepage with descriptions and demo links
- 🧭 Supports single-page and multi-page navbar types
- 🧰 Ready for easy expansion — just add your own folder to create a new variant
app/
├─ page.tsx # Gallery homepage
├─ (examples)/
│ └─ navbars/
│ ├─ page.tsx # Navbars overview (optional)
│ ├─ multipage/
│ │ ├─ navbar1/
│ │ │ ├─ page.tsx # Demo page for Navbar 1
│ │ │ ├─ Navbar.tsx
│ │ │ ├─ components/
│ │ │ └─ styles.module.css
│ │ └─ navbar2/
│ ├─ singlepage/
│ │ └─ navbar1/
│ │ └─ navbar2/
│ └─ side-drawer/ (maybe in future)
│ └─ drawer1/ (maybe in future)
| Type | Description |
|---|---|
| Multi-page | Traditional navbars for sites with multiple routes (active route highlight, dropdowns, etc.) |
| Single-page | Anchor-based navbars for landing pages and scroll animations |
| Side drawer / Off-canvas | Mobile-first full-screen or side-slide menus |
| Advanced | Mega menus, auth-aware headers, and animated navbars (coming soon) |
git clone https://github.com/s54a/nextjs-navbar-gallery.gitcd nextjs-navbar-gallerypnpm installpnpm devOpen http://localhost:3000 in your browser.
To create your own navbar variant:
- Duplicate an existing folder inside
app/(examples)/navbars/<type>/. - Rename it, e.g.
navbar3orhero. - Modify
Navbar.tsxandpage.tsxto your liking. - Add its info to the
CARDSarray inapp/page.tsxto display it on the gallery grid.
- Next.js 15+ (App Router)
- TypeScript
- Tailwind CSS
- Framer Motion
- pnpm (package manager)
- Init
Contributions and suggestions are welcome! If you’d like to add a new navbar, open a PR or create an issue describing your idea.
MIT © https://github.com/s54a