Breadcrumbs
Shows the user's location within a hierarchy and allows quick backtracking.
- Status
- ReadyBuild day 4 of 21
- Code
- In React
- Role
- Navigation
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { Breadcrumbs, type BreadcrumbItem } from "@/ui";
const items: BreadcrumbItem[] = [
{ label: "Home", href: "/" },
{ label: "Product", href: "/product" },
{ label: "KPR Digital", href: "/product/kpr" },
{ label: "Simulation", href: "/product/kpr/simulation" },
{ label: "Detail" },
];
export default function BreadcrumbsDemo() {
return <Breadcrumbs maxItems={4} items={items} />;
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- items
- { label: string; href?: string }[] · default none
- The path. The last item is the current page and is not a link.
- size
- "sm" | "md" · default "md"
- 12px or 14px text.
- separator
- "chevron" | "slash" · default "chevron"
- The mark between items.
- home
- boolean · default true
- Shows a house icon on the first item.
- maxItems
- number · default 0
- Collapses the middle to an ellipsis when there are more items. 0 never collapses. The first and last two items stay.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 📐 Size
- size
- sm or md.
- 🔀 Count
- items, maxItems
- 2 to 5 Level is the length of items. Truncated is maxItems.
- Change Icon
- separator
- chevron or slash.
- Show Icon Left
- home
- House icon on the first item.
- 🎯 State
- None
- Hover comes from the browser. Current is the last item. There is no disabled item in code.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Each link is a native anchor: Tab focuses it and Enter follows it. The current page is not focusable.
Screen readers
- Wrapped in a nav labeled Breadcrumb, with the items in an ordered list.
- The last item has aria-current="page".
- Separators and the house icon are aria-hidden.
What you still need to do
- Pass real href values. Without one, an item is a link that goes nowhere.
- Do not use it as the only navigation.
When to use
Deep or nested page structures.
Do and don't
Do
- Reflect the actual hierarchy of the site.
- Make all but the current page clickable.
Don't
- Use on flat, single-level sites.
- Make the current page a clickable link.
Related
4 of 16 other atoms, same role and ready ones first.
- AvatarA visual representation of a user, team, or entity.Ready
- BadgeA small label used to highlight status, category, or count.Ready
- ButtonTrigger an action or event, such as submitting a form or opening a dialog.Ready
- CheckboxLets users select one or more options from a set.Ready
Status reflects the component tracker snapshot of 29 October 2026.