Join our Discord community
Navbar

App Switcher Navigation Bar

Application-focused navigation bar with team switcher, central app toggle, and action buttons. Features searchable team selection, grid-based app switching, and export/upgrade functionality for multi-application platforms.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/navbar-16.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-16.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-16.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-16.json

Features

  • Team switcher with searchable command palette interface for team selection
  • Central app toggle with grid layout showing available applications and descriptions
  • Application grid displaying apps in 2-column layout with names and descriptions
  • Current app indicator with visual highlight bar for active application
  • Export functionality with upload icon and responsive design
  • Upgrade button with sparkles icon and prominent styling
  • Responsive layout with icon-only buttons on mobile devices
  • TypeScript support with comprehensive interfaces for teams and applications

Use Cases

This free open source React component works well for:

  • Multi-app platforms - Software suites with multiple applications and team workspaces using Next.js
  • Enterprise dashboards - Business tools with team-based access and application switching using TypeScript
  • SaaS platforms - Multi-tenant applications with team management and feature upgrading using Tailwind CSS
  • Workspace applications - Collaborative tools with team selection and app navigation

API Reference

PropTypeDefaultDescription
teamsstring[]defaultTeamsArray of available team names
defaultTeamstringteams[0]Default selected team
currentAppstring"dashboard"Currently active application identifier
appsAppOption[]defaultAppsArray of available applications
exportButtonTextstring"Export"Text label for export button
upgradeButtonTextstring"Upgrade"Text label for upgrade button
onTeamChange(team: string) => voidundefinedCallback for team selection changes
onAppChange(appId: string) => voidundefinedCallback for application selection changes
onExportClick() => voidundefinedCallback for export button clicks
onUpgradeClick() => voidundefinedCallback for upgrade button clicks

Application Interface

interface AppOption {
  id: string;            // Unique identifier for the application
  name: string;          // Display name of the application
  description?: string;  // Optional description text
  icon?: React.ReactNode; // Optional icon component
}

Team Selection Features

  • Searchable Interface - Command palette with search functionality for team discovery
  • Keyboard Navigation - Full keyboard support for team selection
  • Visual Feedback - Check icon for currently selected team
  • Responsive Design - Consistent width and positioning across screen sizes

App Switching Features

  • Grid Layout - 2-column grid displaying available applications
  • Rich Information - Application names with optional descriptions
  • Current App Highlight - Visual indicator bar for active application
  • Icon Support - Optional icon display for each application
  • Center Positioning - Central placement emphasizing app switching functionality

Action Buttons

  • Export Functionality - Ghost variant button with upload icon
  • Upgrade Promotion - Primary button with sparkles icon for feature upgrading
  • Responsive Text - Text hidden on mobile with screen reader support
  • Icon Positioning - Proper icon spacing and opacity for visual hierarchy

Implementation Notes

  • Uses shadcn/ui Command component for searchable team selection interface
  • App toggle uses DropdownMenu with grid layout for organized application display
  • Current app indication uses primary color bar for clear visual feedback
  • Export and upgrade buttons include proper responsive design patterns
  • All interactive elements include preventDefault with callback support
  • Compatible with shadcn/ui design system and Tailwind CSS styling framework
  • Team switcher supports keyboard navigation and accessibility standards
  • App grid layout provides clear visual separation between application options