Skip to content

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

6 steps · 0 hidden

Basic

With icons

Long step name

Dropdown on a step

Open on click

Collapsed

Collapse on overflow

Drag the edge to resize

Expand in place

Custom separator

API Reference

Types come from the public API. A dash indicates no default is documented here.

Breadcrumb props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<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.idstringRequired
props.items
Show type
readonly { readonly label: string; readonly id: string; readonly disabled?: boolean; readonly href?: string; }[]
Required
props.expandedbooleanRequired
props.size"default" | "compact"—
props.classNamestring''
props.shape"rounded" | "pill" | "sharp"—
props.ariaLabelstring'Breadcrumb'
props.collapse"always" | "never" | "overflow"'overflow'