Breadcrumb
Slide Breadcrumb
A breadcrumb trail with a soft pill highlight that slides between the steps as you hover.
npx motionsnack add slide-breadcrumbCustomize
<SlideBreadcrumb />Props
10 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { value?: string; label: string; href?: string }[] | 6 demo steps | Steps of the trail, from the root to the current page. |
| value | string | - | Controlled current page (an item's value). |
| defaultValue | string | last step | Current page on first render when uncontrolled. |
| onChange | (value: string) => void | - | Called with the step's value when the user follows a link in the trail. |
| linkComponent | ElementType | 'a' | Renders every step link, e.g. the app's router link. |
| ariaLabel | string | 'Breadcrumb' | Accessible name of the navigation landmark. |
| className | string | '' | Extra classes on the nav element. |
| separator | 'chevron' | 'slash' | 'chevron' | Glyph between the steps. |
| maxItems | number | 4 | Most steps shown at once. A longer trail shows the first, an overflow menu and the last two; 0 never folds. |
| homeIcon | boolean | true | Small house icon in front of the first step. |
About Slide Breadcrumb
A breadcrumb trail built from a plain list of labels and links, with the last step marked as the current page. A single soft pill sits behind the step under the pointer and springs to the next one as you move along the trail, fading in on entry and out when the pointer leaves. Keyboard focus moves the same highlight. Long trails keep the first step and the last few and fold the middle into an ellipsis button; pressing it reveals the hidden steps with a short fade and moves focus to the first of them. Separators can be chevrons, slashes or dots, and the travel time and bounce of the highlight are props.
What's included
- Sliding pill highlight on hover and keyboard focus
- Chevron, slash or dot separators
- Current page marked with aria-current and an accent dot
- Long trails fold the middle into an expandable ellipsis
- Optional home icon and two sizes
- Spring duration and bounce as props
- Light and dark, reduced motion respected
- Type
- Animated React breadcrumb component
- Library
- Components · Breadcrumb
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add slide-breadcrumb