Navbar
Icon Navigation Bar
Compact icon-based navigation bar with theme toggle and language selector. Features tooltips for icon navigation, internationalization support, and user profile management for global applications.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/navbar-06.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-06.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-06.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-06.json
Features
- Icon-only desktop navigation with tooltip labels for compact, clean design
- Theme toggle with light/dark mode switching and visual state indicators
- Language selector with international support and customizable language options
- Tooltips for accessibility providing context for icon-based navigation elements
- User profile menu with avatar display and account management options
- Container-based responsive design with automatic mobile/desktop switching based on actual width
- TypeScript support with comprehensive interface definitions and callback functions
- shadcn/ui integration using Tooltip, Select, and DropdownMenu components
Use Cases
This free open source React component works well for:
- International applications - Multi-language platforms with global user bases
- Dashboard interfaces - Compact navigation for data-rich applications built with Next.js
- SaaS platforms - Space-efficient navigation with theme customization using Tailwind CSS
- Admin panels - Icon-based navigation for professional enterprise applications
API Reference
Navbar06
Prop | Type | Default | Description |
---|---|---|---|
logo | React.ReactNode | <Logo /> | Logo component to display in the navbar |
logoHref | string | "#" | URL for logo click navigation |
navigationLinks | Navbar06NavItem[] | defaultNavigationLinks | Array of navigation items with icons and labels |
languages | Navbar06Language[] | defaultLanguages | Array of available language options |
defaultLanguage | string | "en" | Default selected language code |
userName | string | "John Doe" | Display name for the user profile |
userEmail | string | "[email protected]" | Email address for the user profile |
userAvatar | string | undefined | URL for user avatar image |
onNavItemClick | (href: string) => void | undefined | Callback for navigation item clicks |
onLanguageChange | (language: string) => void | undefined | Callback for language selection changes |
onThemeChange | (theme: 'light' | 'dark') => void | undefined | Callback for theme toggle changes |
onUserItemClick | (item: string) => void | undefined | Callback for user menu item clicks |
Navigation Item Structure
- Icon Navigation - Desktop shows only icons with tooltip labels for space efficiency
- Mobile Expansion - Mobile menu displays both icons and text labels
- Active States - Visual highlighting for current page with background accent
- Tooltip Integration - Hover tooltips provide context for icon-only navigation
Internationalization Features
- Language Selector - Dropdown with globe icon and language abbreviations
- Customizable Languages - Support for any language codes and display labels
- Responsive Display - Language labels hidden on small screens, icon-only display
- Theme Integration - Dark/light mode toggle with sun/moon icons
Implementation Notes
- Uses ResizeObserver for container-based responsive behavior independent of viewport
- Supports keyboard navigation and accessibility standards through Radix UI components
- Mobile menu automatically appears when container width is less than 768px
- Tooltip provider wraps icon navigation for proper tooltip functionality
- Theme toggle maintains internal state with callback for external theme management
- All navigation items are non-functional for demonstration purposes with callback support
- Compatible with shadcn/ui design system and Tailwind CSS styling framework
- Language selector supports full internationalization with custom language arrays
Dashboard Navigation Bar
Comprehensive dashboard navigation bar with info menu, notification system, and user profile management. Features advanced dropdown menus, avatar integration, and notification badges for React applications.
Breadcrumb Navigation Bar
Hierarchical breadcrumb navigation bar with project selector and contextual navigation. Features collapsible breadcrumbs, dropdown project selection, and notification system for multi-project applications.