Navbar
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.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/navbar-07.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-07.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-07.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-07.json
Features
- Breadcrumb navigation with hierarchical path display and responsive collapsing
- Project selector with dropdown menu and customizable project options
- Mobile-responsive breadcrumbs with ellipsis dropdown for collapsed navigation items
- Notification system with badge counter and dropdown message list
- User profile menu with avatar display and account management options
- Contextual navigation showing current location within application hierarchy
- TypeScript support with comprehensive interface definitions for breadcrumbs and projects
- shadcn/ui integration using Breadcrumb, Select, and DropdownMenu components
Use Cases
This free open source React component works well for:
- Multi-project platforms - Development environments with project-based navigation
- Enterprise applications - Complex hierarchical structures built with Next.js and TypeScript
- SaaS dashboards - Account and project management interfaces using Tailwind CSS
- File management systems - Directory-based navigation with contextual breadcrumbs
API Reference
Navbar07
Prop | Type | Default | Description |
---|---|---|---|
logo | React.ReactNode | <Logo /> | Logo component to display in the navbar |
logoHref | string | "#" | URL for logo click navigation |
breadcrumbItems | Navbar07BreadcrumbItem[] | defaultBreadcrumbItems | Array of breadcrumb navigation items |
projects | Navbar07Project[] | defaultProjects | Array of available project options |
defaultProject | string | "1" | Default selected project value |
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 |
onBreadcrumbClick | (href: string) => void | undefined | Callback for breadcrumb item clicks |
onProjectChange | (project: string) => void | undefined | Callback for project selection changes |
onNotificationItemClick | (item: string) => void | undefined | Callback for notification item clicks |
onUserItemClick | (item: string) => void | undefined | Callback for user menu item clicks |
Breadcrumb Features
- Hierarchical Navigation - Clear path display from root to current location
- Responsive Collapsing - Mobile-friendly ellipsis dropdown for space constraints
- Interactive Elements - Clickable breadcrumb items with callback support
- Project Integration - Seamless project selector within breadcrumb context
Project Management
- Project Selector - Dropdown with ChevronsUpDown icon and custom styling
- Dynamic Options - Configurable project list with value/label pairs
- Selection Callbacks - Project change notifications for application state management
- Visual Integration - Consistent styling with breadcrumb navigation flow
Implementation Notes
- Uses shadcn/ui Breadcrumb component for semantic navigation structure
- Supports keyboard navigation and accessibility standards through Radix UI components
- Mobile breadcrumbs automatically collapse to ellipsis dropdown on smaller screens
- Project selector integrates Radix Select with custom trigger styling
- All navigation items are non-functional for demonstration purposes with callback support
- Compatible with shadcn/ui design system and Tailwind CSS styling framework
- Notification and user menus provide complete dashboard functionality
- Breadcrumb separators automatically adjust for responsive display
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.
Two-Tier Navigation Bar
Two-tier navigation bar with centered search functionality and bottom navigation menu. Features prominent search with keyboard shortcuts, notification system, and user profile management for content-focused applications.