Team Switcher Navigation Bar
Social platform navigation bar with team switcher, icon-based navigation, notifications, and action buttons. Features centered icon navigation, team selector, and comprehensive notification management for collaborative applications.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/navbar-12.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-12.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-12.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-12.json
Features
- Team switcher with searchable dropdown for switching between multiple teams or organizations
- Icon-based navigation with centered layout for primary navigation actions (Dashboard, Explore, Write, Search)
- Notification system with unread count badge and detailed notification dropdown
- Action button with responsive design showing "Post" on desktop and icon-only on mobile
- User profile menu with avatar display and account management options
- Mobile-responsive hamburger menu that displays navigation links with icons and labels
- TypeScript support with comprehensive interface definitions and callback functions
- shadcn/ui integration using Command, Popover, and DropdownMenu components
Use Cases
This free open source React component works well for:
- Social platforms - Applications with team-based collaboration and content creation using Next.js
- Creative tools - Design and writing platforms with project switching and notifications using TypeScript
- Collaborative workspaces - Team-based applications with shared projects and communication using Tailwind CSS
- Content management - Publishing platforms with team management and notification systems
API Reference
Navbar12
Prop | Type | Default | Description |
---|---|---|---|
navigationLinks | Navbar12NavItem[] | defaultNavigationLinks | Array of navigation menu items with icons |
teams | string[] | defaultTeams | Array of available team names |
defaultTeam | string | teams[0] | Default selected team |
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 |
notifications | Notification[] | defaultNotifications | Array of notification objects |
onNavItemClick | (href: string) => void | undefined | Callback for navigation item clicks |
onTeamChange | (team: string) => void | undefined | Callback for team selection changes |
onUserItemClick | (item: string) => void | undefined | Callback for user menu item clicks |
onNotificationClick | (notificationId: string) => void | undefined | Callback for notification item clicks |
Navigation Features
- Icon Navigation - Centered icon-based navigation for primary actions with tooltips
- Team Switcher - Searchable command palette for switching between teams or organizations
- Responsive Layout - Mobile hamburger menu showing navigation with icons and labels
- Action Integration - Primary action button with responsive text/icon display
Notification System
- Unread Badge - Visual indicator showing count of unread notifications
- Detailed View - Rich notification dropdown with titles, messages, and timestamps
- Status Tracking - Visual indicators for read/unread notification states
- Action Callbacks - Click handlers for individual notification interactions
Implementation Notes
- Uses shadcn/ui Command component for searchable team switching with keyboard navigation
- Supports keyboard navigation and accessibility standards through Radix UI components
- Mobile navigation collapses to hamburger menu with icon-labeled navigation items
- Notification system includes unread count badge with destructive variant styling
- All navigation items are non-functional for demonstration purposes with callback support
- Compatible with shadcn/ui design system and Tailwind CSS styling framework
- Icon navigation provides semantic meaning with screen reader support and tooltips
- Team switcher uses Command palette pattern for efficient team discovery and switching
Context Switcher Navigation Bar
Multi-tenant navigation bar with account selector, project selector, and settings menu. Features breadcrumb-style context switching, dropdown navigation, and comprehensive settings management for enterprise applications.
AI Model Selector Navigation Bar
AI-focused navigation bar with model selector dropdown, temporary chat functionality, and user management. Features comprehensive model selection with descriptions and quick access to chat features for AI applications.