Skip to content

React navigation components

Free React navigation components for Tailwind: sidebars, top bars, tabs, breadcrumbs, command palettes, pagination, mega menus and mobile drawers.

29 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

This category covers app navigation (Sidebar, CollapsibleSidebar, Topbar, NestedNav, TreeView), wayfinding inside a page (Breadcrumb, BackLink, Tabs, VerticalTabs, Pagination, TableOfContents) and site navigation (NavigationMenu, MobileNavDrawer, FooterNav). CommandPalette adds a ⌘K launcher on top of any of them.

Most are built on Base UI or follow a WAI-ARIA pattern, so the keyboard support is part of the component: arrow keys in tabs, menus and trees, Escape to close, and focus returned to the trigger. For an app, start with CollapsibleSidebar and Topbar. For a marketing site, use NavigationMenu on desktop and MobileNavDrawer below your breakpoint.

Which one should I use?

You needUseWhy
An app rail that collapses to iconsCollapsible SidebarLabels stay named for screen readers
The header bar of an appTopbarTitle left, actions right
Switch panels of content in placeTabsGliding indicator, roving focus
Sections of a settings pageVertical TabsStacks on small screens
Show where a page sitsBreadcrumbWAI-ARIA breadcrumb pattern
Go back one levelBack LinkA real link above the title
A paged list with page numbersPaginationFixed width, never jumps
Jump anywhere with ⌘KCommand PaletteType to filter, Enter to run
Marketing nav with dropdown panelsNavigation MenuOne viewport that resizes
Navigation on phonesMobile Nav DrawerFocus trapped, scroll locked
A docs sidebar with groupsNested NavTwo or three levels
Folders or other nested treesTree ViewWAI-ARIA tree keyboard
Contents that follow the readerTable Of ContentsBuilt-in scroll-spy
Desktop app menus like File and EditMenubarBase UI Menubar
Switch between organizationsOrg SwitcherCurrent org checked, plan shown

29 items

npx shadcn@latest add @minidev/back-link @minidev/breadcrumb-ellipsis @minidev/breadcrumb @minidev/collapsible-sidebar @minidev/command-item @minidev/command-palette @minidev/footer-nav @minidev/link @minidev/menubar @minidev/mobile-nav-drawer @minidev/navigation-menu @minidev/nested-nav @minidev/org-switcher @minidev/pagination @minidev/sidebar-section @minidev/sidebar @minidev/skip-link @minidev/tabs @minidev/toc @minidev/topbar @minidev/tree-view @minidev/vertical-tabs @minidev/floating-nav @minidev/search-results-page @minidev/scroll-progress-rail @minidev/dock @minidev/back-to-top @minidev/animated-tabs @minidev/table-of-contents

Components 24

  • Small back navigation link with a left arrow icon, muted text that darkens on hover and a visible focus ring. Defaults to the label Back and accepts any href.

    npx shadcn@latest add @minidev/back-link
  • Ellipsis marker for collapsing the middle of long breadcrumb trails. Decorative and hidden from assistive tech, sized to sit between breadcrumb separators.

    npx shadcn@latest add @minidev/breadcrumb-ellipsis
  • Breadcrumb navigation from an items array, with chevron separators, linked ancestors and the current page marked with aria-current. Built with React.

    npx shadcn@latest add @minidev/breadcrumb
  • Sidebar with a toggle button on its edge that collapses it to a narrow rail and expands it again. The button label updates for screen readers.

    npx shadcn@latest add @minidev/collapsible-sidebar
  • Row for command menus with a label, an optional keyboard shortcut in a kbd tag and an active highlight state. Use it to build custom command lists.

    npx shadcn@latest add @minidev/command-item
  • Cmd K style command palette in a dialog with a search field that filters commands as you type, runs the chosen action and closes. Shows an empty state.

    npx shadcn@latest add @minidev/command-palette
  • A slim one line footer with the brand name on the left and a wrapping set of links in a labeled nav element. Fits app shells, docs and small landing pages.

    npx shadcn@latest add @minidev/footer-nav
  • A styled anchor with the accent color, underline on hover and a visible focus ring. Accepts every native anchor prop, so it works with Next.js or plain hrefs.

    npx shadcn@latest add @minidev/link
  • A desktop style app menubar built on Base UI: a row of triggers that each open a dropdown of items, with keyboard navigation between menus. shadcn compatible.

    npx shadcn@latest add @minidev/menubar
  • A hamburger button that opens a right side navigation drawer as a modal dialog, with a close button and links that dismiss it on tap. Built in React.

    npx shadcn@latest add @minidev/mobile-nav-drawer
  • A site navigation menu built on Base UI with triggers that open rich dropdown panels in a shared viewport, plus link items. Mirrors the shadcn navigation menu.

    npx shadcn@latest add @minidev/navigation-menu
  • A collapsible tree navigation built from nested node data, indented by depth with rotating chevrons on items that have children. Fits React docs sidebars.

    npx shadcn@latest add @minidev/nested-nav
  • A popover switcher for moving between organizations or workspaces, showing the current name, a check on the active item and an optional plan label per org.

    npx shadcn@latest add @minidev/org-switcher
  • A pagination nav with Prev and Next buttons that disable at the edges and numbered page buttons that mark the current page with aria-current. Built in React.

    npx shadcn@latest add @minidev/pagination
  • Sidebar section that groups nav items under an optional small uppercase heading with tight spacing. Stack several inside the Sidebar to organize app navigation.

    npx shadcn@latest add @minidev/sidebar-section
  • App sidebar shell with a collapsed icon-only width and SidebarNavItem buttons that show icons, truncated labels and an active state. Built with Tailwind.

    npx shadcn@latest add @minidev/sidebar
  • Skip to content link that stays visually hidden until focused, then appears fixed in the top corner so keyboard users can jump past navigation in any React app.

    npx shadcn@latest add @minidev/skip-link
  • Tabs on Base UI with a raised thumb or a line underline that springs to the active tab, optional count badges, vertical orientation and roving keyboard focus.

    npx shadcn@latest add @minidev/tabs
  • Toc

    ui

    Table of contents nav with anchor links indented by heading level and a highlighted active item. Pair it with scroll tracking for docs and long articles.

    npx shadcn@latest add @minidev/toc
  • App top bar that is 56px tall with a title or custom left content and a right slot for actions, avatars or search. Sits above the main content in dashboards.

    npx shadcn@latest add @minidev/topbar
  • Nested tree view with expandable nodes, rotating chevrons, depth indentation and ARIA tree roles. Suited to file explorers and nested category lists in React.

    npx shadcn@latest add @minidev/tree-view
  • Vertical tabs with a 180px tab list on the left and the active panel on the right, using tab and tabpanel roles. Stacks on mobile. Built for settings screens.

    npx shadcn@latest add @minidev/vertical-tabs
  • A back to top button that appears after scrolling, with a ring that fills as the reader progresses. Smooth scroll that respects reduced motion.

    npx shadcn@latest add @minidev/back-to-top
  • Sticky React table of contents that reads h2 and h3 headings, marks the section in view with a sliding accent bar and smooth scrolls to a heading on click.

    npx shadcn@latest add @minidev/table-of-contents

Blocks and full pages 2

  • A sticky marketing navbar that tucks into a floating pill after you scroll, with a hover highlight that glides between links and an animated mobile menu.

    npx shadcn@latest add @minidev/floating-nav
  • A search results panel with a query input, result count and a list of hits, each showing a monospace item name, a tier badge and a one line summary.

    npx shadcn@latest add @minidev/search-results-page

Motion 3

  • A React reading progress bar that fills with page scroll on a spring, with section labels such as intro, product, proof and pricing shown beneath it.

    npx shadcn@latest add @minidev/scroll-progress-rail
  • Dock

    motion

    A macOS style dock for React: icons magnify under the pointer with spring physics and show a label. Real buttons or links, keyboard reachable and labelled.

    npx shadcn@latest add @minidev/dock
  • Tabs with a sliding pill indicator and panels that fade in the direction of travel. Full WAI-ARIA tabs keyboard support with Arrow keys, Home and End.

    npx shadcn@latest add @minidev/animated-tabs

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

How do I add a ⌘K command palette in React?

Install CommandPalette. Uncontrolled, it renders its own trigger and listens for ⌘K or Ctrl+K; pass open and onOpenChange to open it from your own button. Typing filters the list, arrow keys move and Enter runs the command.

Does the sidebar collapse to icons?

Yes. CollapsibleSidebar has a toggle on its edge that shrinks it to an icon rail. Pass collapsed and onCollapsedChange to remember the state. When collapsed, item labels become screen-reader only, so every item keeps its name.

Should I use tabs or a segmented control?

Tabs switch between panels of content in place. SegmentedControl picks a value or a view mode without panels, such as Monthly / Yearly or List / Board.

How do I add a table of contents with scroll-spy?

TableOfContents reads the h2 and h3 headings from a container, or takes explicit items, then watches the nearest scroll area and moves an accent marker to the heading being read. Clicking an item scrolls there and moves focus to the heading.