Navbar
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.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/navbar-05.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-05.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-05.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-05.json
Features
- Info menu with help system featuring help center, documentation, and support links
- Notification system with badge counter and dropdown list of recent notifications
- User profile menu with avatar display, user details, and account management options
- Advanced dropdown components using shadcn/ui DropdownMenu with proper accessibility
- 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 Avatar, Badge, and DropdownMenu components
Use Cases
This free open source React component works well for:
- Dashboard applications - Admin panels and control interfaces built with Next.js and TypeScript
- SaaS platforms - User management systems with notifications and profile features
- Enterprise applications - Internal tools requiring comprehensive navigation using Tailwind CSS
- Web applications - Multi-user platforms with notification systems and user profiles
API Reference
Navbar05
Prop | Type | Default | Description |
---|---|---|---|
logo | React.ReactNode | <Logo /> | Logo component to display in the navbar |
logoHref | string | "#" | URL for logo click navigation |
navigationLinks | Navbar05NavItem[] | defaultNavigationLinks | Array of navigation menu items |
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 |
notificationCount | number | 3 | Number of unread notifications to display |
onNavItemClick | (href: string) => void | undefined | Callback for navigation item clicks |
onInfoItemClick | (item: string) => void | undefined | Callback for info menu item clicks |
onNotificationItemClick | (item: string) => void | undefined | Callback for notification item clicks |
onUserItemClick | (item: string) => void | undefined | Callback for user menu item clicks |
Menu Components
- InfoMenu - Help and support dropdown with documentation links
- NotificationMenu - Notification dropdown with badge counter and message list
- UserMenu - User profile dropdown with avatar, account settings, and logout
- Mobile Integration - All menu components accessible in mobile navigation
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
- Avatar component supports both image URLs and fallback initials
- Notification badge displays count with 9+ overflow indicator for large numbers
- All menu items are non-functional for demonstration purposes with callback support
- Compatible with shadcn/ui design system and Tailwind CSS styling framework
- Dropdown menus feature proper alignment and responsive positioning
E-commerce Navigation Bar
Feature-rich e-commerce navigation bar with integrated search functionality, shopping cart counter, and mobile-responsive design. Perfect for online stores and marketplace applications built with React and TypeScript.
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.