Join our Discord community
Navbar

Breadcrumb and Filters Navigation Bar

Reports-focused navigation bar with breadcrumb navigation, date picker, advanced filters, and bookmark functionality. Features hierarchical navigation, date selection, multi-group filtering, and saved items management for analytics dashboards.

Loading component...

Installation

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

Features

  • Breadcrumb navigation with home icon and hierarchical page structure
  • Date picker with calendar popup and formatted date display using date-fns
  • Advanced filters with grouped checkboxes, active filter count, and clear functionality
  • Saved items button with bookmark icon and responsive design
  • Home icon integration showing house icon for the first breadcrumb item
  • Filter management with status and category groups, visual active indicators
  • Responsive layout with mobile-friendly saved button (icon-only on small screens)
  • TypeScript support with comprehensive interfaces for breadcrumbs and filters

Use Cases

This free open source React component works well for:

  • Analytics dashboards - Reporting interfaces with date ranges and data filtering using Next.js
  • Admin panels - Management systems with breadcrumb navigation and content filtering using TypeScript
  • Data visualization - Dashboards with date selection and multi-dimensional filtering using Tailwind CSS
  • Content management - Systems with hierarchical navigation and advanced search capabilities

API Reference

PropTypeDefaultDescription
breadcrumbItemsNavbar15BreadcrumbItem[]defaultBreadcrumbItemsArray of breadcrumb navigation items
showHomeIconbooleantrueWhether to show home icon for first breadcrumb item
selectedDateDateundefinedControlled date picker value
filterGroupsFilterGroup[]defaultFilterGroupsArray of filter groups with options
savedButtonTextstring"Saved"Text label for the saved items button
onBreadcrumbClick(href: string) => voidundefinedCallback for breadcrumb item clicks
onDateChange(date: Date | undefined) => voidundefinedCallback for date picker changes
onFilterChange(groupId: string, optionId: string, checked: boolean) => voidundefinedCallback for filter option changes
onClearFilters() => voidundefinedCallback for clearing all filters
onSavedClick() => voidundefinedCallback for saved button clicks
interface Navbar15BreadcrumbItem {
  href?: string;          // Link URL for navigation
  label: string;          // Display text for breadcrumb
  isCurrentPage?: boolean; // Mark as current page (no link)
}

Filter Interface

interface FilterGroup {
  id: string;
  label: string;
  options: FilterOption[];
}

interface FilterOption {
  id: string;
  label: string;
  checked?: boolean;
}
  • Hierarchical Breadcrumbs - Clear page hierarchy with home icon and separators
  • Current Page Indicator - Non-interactive current page display in breadcrumb
  • Responsive Icons - Home icon with screen reader support for accessibility
  • Click Handling - Prevented default navigation with callback support

Date Selection

  • Calendar Popup - Full calendar interface with date selection
  • Formatted Display - Human-readable date format using date-fns
  • Controlled State - Support for controlled and uncontrolled date values
  • Clear Interface - Calendar icon with placeholder text when no date selected

Filter System

  • Grouped Filters - Organized filter options by category (Status, Category, etc.)
  • Active Count Badge - Visual indicator showing number of active filters
  • Clear Functionality - One-click clearing of all active filters
  • Checkbox Interface - Multi-select checkboxes with visual checked states

Implementation Notes

  • Uses shadcn/ui Breadcrumb component for semantic navigation structure
  • Date picker integrates Calendar component with Popover for clean interface
  • Filter system uses DropdownMenuCheckboxItem for accessible multi-selection
  • Active filter count displayed with Badge component for visual feedback
  • Bookmark button responsive design shows icon-only on mobile devices
  • Compatible with shadcn/ui design system and Tailwind CSS styling framework
  • All interactive elements include proper callback support for application integration
  • Home icon provides visual hierarchy anchor point with screen reader accessibility