Join our Discord community
Navbar

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

Loading component...

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

PropTypeDefaultDescription
navigationLinksNavbar12NavItem[]defaultNavigationLinksArray of navigation menu items with icons
teamsstring[]defaultTeamsArray of available team names
defaultTeamstringteams[0]Default selected team
userNamestring"John Doe"Display name for the user profile
userEmailstring"[email protected]"Email address for the user profile
userAvatarstringundefinedURL for user avatar image
notificationsNotification[]defaultNotificationsArray of notification objects
onNavItemClick(href: string) => voidundefinedCallback for navigation item clicks
onTeamChange(team: string) => voidundefinedCallback for team selection changes
onUserItemClick(item: string) => voidundefinedCallback for user menu item clicks
onNotificationClick(notificationId: string) => voidundefinedCallback for notification item clicks
  • 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