Navbar 15 - Language switcher and theme togglePro
A header with a globe language dropdown showing native names and a check on the current locale, plus a light/dark toggle whose sun and moon icons rotate in and out. Use it for international products and docs that offer localisation and theme preferences.
About Navbar 15
A header with a globe language dropdown showing native names and a check on the current locale, plus a light/dark toggle whose sun and moon icons rotate in and out. Use it for international products and docs that offer localisation and theme preferences.
Navbar 15 is a pro navbar block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 164 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- language
- locale
- i18n
- theme toggle
- dark mode
- dropdown
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/navbar-15Dependencies installed automatically: lucide-react, motion.
Uses: button, dropdown-menu, sheet, use-reduced-motion, utils.
Usage
import Navbar15 from "@/components/blocks/navbar-15"
export default function Page() {
return <Navbar15 />
}