Ruixen Pro is now live.50+ premium components, templates, blocks, and lifetime updates.

Command Palette

Search for a command to run...

Docs
Breadcrumb Dropdown

Breadcrumb Dropdown

Inline-expanding collapsible breadcrumb — click the trigger and hidden path segments unfold in place with staggered timing, no floating dropdown needed.

Installation

Usage

import BreadcrumbDropdown from "@/components/ruixen/breadcrumb-dropdown";
 
const items = [
  { label: "Home", href: "/" },
  { label: "Products", href: "/products" },
  { label: "Electronics", href: "/products/electronics" },
  { label: "Computers", href: "/products/electronics/computers" },
  { label: "Laptops", href: "/products/electronics/computers/laptops" },
  { label: "Gaming Laptops" },
];
 
export default function MyBreadcrumb() {
  return <BreadcrumbDropdown items={items} maxVisible={3} />;
}

Props

PropTypeDefaultDescription
itemsBreadcrumbDropdownItem[]-Array of breadcrumb items
maxVisiblenumber3Max items before collapsing
classNamestring-Additional CSS classes
PropertyTypeDescription
labelstringDisplay text for the item
hrefstringOptional link URL

Features

  • Inline Expand: Hidden path segments unfold directly within the breadcrumb flow — no floating dropdown, no popover, everything stays in the document
  • Staggered Reveal: Each hidden item slides in from the left (translateX(-8px) to 0) with 50ms stagger between items — choreographed, not chaotic
  • Trigger Morph: The ··· trigger crossfades to a dash when expanded, using scale + rotate animation for a smooth icon transition
  • Instant Collapse: Clicking the dash snaps the path closed — the expand is the choreographed moment, the collapse is utility
  • Material Deceleration: Uses cubic-bezier(0.0, 0.0, 0.2, 1) — no spring overshoot. The stagger choreography provides the motion interest
  • Accessibility: aria-expanded on trigger, aria-current="page" on active item, aria-hidden separators, semantic nav + ol structure