Installation
npx shadcn@latest add @iconiq/breadcrumbsProps
BreadcrumbItem
3 props
Each breadcrumb segment is described by a small object consumed by the Breadcrumbs component.
label
stringRequired
Visible label and React key for the item. Labels should therefore be unique inside a single breadcrumb trail.
href
stringLink destination used by the rendered anchor. If it is omitted, the component falls back to '#'.
icon
ReactNodeOptional icon shown before the label, typically a Lucide icon or any other inline React node.
Breadcrumbs
2 props
Animated breadcrumb trail that maps over the items array and styles the last entry as the current location.
items
BreadcrumbItem[]Required
Ordered list of segments. Earlier items receive hover and tap motion, while the last item gets the shimmer and pulsing dot treatment.
className
stringMerged onto the root nav wrapper so you can place the trail inside your own header layout.
Notes
The last item still renders as a motion.a element, even if href is omitted. Its classes remove the interactive cursor but the fallback anchor target is still '#'.
Separators only render after the first item and use the built-in ChevronRight icon from lucide-react.