Breadcrumb
A trail of links to the current page: one fluid hover across every crumb, icons, a Dropdown on a step, and a collapsed middle.
Installation
Install Breadcrumb from the Fluid Effect UI registry.
Playground
Basic
With icons
Long step name
Dropdown on a step
Open on click
Collapsed
Collapse on overflow
Expand in place
Custom separator
Framework links
API Reference
Types come from the public API. A dash indicates no default is documented here.
Breadcrumb props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<K, Ends> | undefined | '' | The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default. |
onEmit | Show type((events: { readonly _tag: "ExpandedChanged"; readonly expanded: boolean; } | { readonly _tag: "LayoutChanged"; readonly hiddenCount: number; } | { readonly _tag: "NavigateRequested"; readonly id: string; }) => NoInfer<Msg> | undefined) | { readonly ExpandedChanged: (event: { readonly _tag: "ExpandedChanged"; readonly expanded: boolean; }) => NoInfer<Msg> | undefined; readonly LayoutChanged: (event: { readonly _tag: "LayoutChanged"; readonly hiddenCount: number; }) => NoInfer<Msg> | undefined; readonly NavigateRequested: (event: { readonly _tag: "NavigateRequested"; readonly id: string; }) => NoInfer<Msg> | undefined; } | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.id | string | Required | |
props.items | Show typereadonly { readonly label: string; readonly id: string; readonly disabled?: boolean; readonly href?: string; }[] | Required | |
props.expanded | boolean | Required | |
props.size | "default" | "compact" | — | |
props.className | string | '' | |
props.shape | "rounded" | "pill" | "sharp" | — | |
props.ariaLabel | string | 'Breadcrumb' | |
props.collapse | "always" | "never" | "overflow" | 'overflow' |