Skip to content
CraftDocs
GitHub
Home
Home
Changelog
What's New
Guide
Guide
Getting Started
Principles
Styling Components
Theme System
Foundations
All Tokens
Color
Elevation
Icons
Motion
Shape
Spacing
Typography
Libraries
Libraries
@xds/cli
@xds/core
Themes
Themes
Theme: daily
Default Theme
Theme: matcha
Neutral Theme
Components
Components
AppShell
AspectRatio
Avatar
Avatar
AvatarStatusDot
Badge
Banner
Breadcrumbs
BreadcrumbItem
Breadcrumbs
Button
Button
IconButton
ToggleButton
ToggleButtonGroup
Calendar
Card
Carousel
Chat
ChatComposer
ChatComposerDrawer
ChatComposerInput
ChatComposerTokenElement
ChatDictationButton
ChatLayout
ChatLayoutScrollButton
ChatMessage
ChatMessageBubble
ChatMessageList
ChatMessageMetadata
ChatSendButton
ChatSystemMessage
ChatTokenizedText
ChatToolCalls
Checkbox
CheckboxInput
CheckboxList
CheckboxListItem
ClickableCard
Code
CodeBlock
Collapsible
Collapsible
CollapsibleGroup
useXDSCollapsible
CommandPalette
CommandPalette
CommandPaletteEmpty
CommandPaletteFooter
CommandPaletteGroup
CommandPaletteInput
CommandPaletteItem
CommandPaletteList
DateInput
Dialog
AlertDialog
Dialog
DialogHeader
useXDSImperativeAlertDialog
useXDSImperativeDialog
Divider
DropdownMenu
DropdownMenu
DropdownMenuDivider
DropdownMenuItem
DropdownMenuItemData
DropdownMenuSection
EmptyState
Field
Field
FieldLabel
FieldStatus
Heading
HoverCard
Icon
Kbd
Layout
Center
FormLayout
Grid
GridSpan
HStack
Layout
LayoutContainer
LayoutContent
LayoutFooter
LayoutHeader
LayoutPanel
Section
StackItem
VStack
Link
List
List
ListItem
Markdown
MetadataList
MetadataList
MetadataListItem
MobileNav
MoreMenu
NavIcon
NavMenuItem
NumberInput
OverflowList
Pagination
Popover
PowerSearch
ProgressBar
Radio
RadioList
RadioListItem
Resizable
ResizeHandle
useXDSResizable
SegmentedControl
SegmentedControl
SegmentedControlItem
SelectableCard
Selector
MultiSelector
Selector
SelectorOption
SideNav
SideNav
SideNavCollapseButton
SideNavHeading
SideNavItem
SideNavSection
Skeleton
Slider
Spinner
StatusDot
Switch
Table
BaseTable
Table
TableCell
TableHeaderCell
TableRow
useXDSTableColumnSettings
useXDSTablePagination
useXDSTableSelection
useXDSTableSelectionState
useXDSTableSortable
Tabs
Tab
TabList
TabMenu
Text
TextArea
TextInput
Thumbnail
TimeInput
Timestamp
Toast
Toast
useXDSToast
Token
Tokenizer
Toolbar
Tooltip
TopNav
TopNav
TopNavHeading
TopNavItem
TopNavMegaMenu
TopNavMegaMenuFeaturedCard
TopNavMegaMenuItem
TopNavMenu
TreeList
Typeahead
BaseTypeahead
Typeahead
TypeaheadItem
useXDSHoverCard
useXDSPopover
useXDSTooltip
Utilities
Utilities
LinkProvider
MediaTheme
SyntaxTheme
Theme
useClickableContainer
useEntryAnimation
useFocusTrap
useGridFocus
useImageMode
useInputContainer
useListFocus
useMediaQuery
useOverflow
useScrollLock
useScrollOverflow
useXDSLayer
useXDSStreamingText
Terms of UsePrivacy Policy
Type to search
↑↓Navigate↵SelectEscClose
Breadcrumbs@xds/core v0.0.13 · XDSBreadcrumbs

Usage

Breadcrumbs show a trail of links from the root to the current page. Use them at the top of detail pages, settings panels, or anywhere the user needs to see where they are and navigate back up.
ts
import {XDSBreadcrumbs} from '@xds/core/Breadcrumbs'

Best practices

GuidancePractices
DoPlace breadcrumbs above the page heading so the user sees their location before reading the content.
DoKeep labels short and match the page titles they link to — "Settings" not "Application Settings Page".
DoUse the supporting variant in dense UIs like admin panels or sidebars where the breadcrumb should be subtle.
DoMake the last item plain text, not a link — it represents the current page. The component does this automatically when you set isCurrent.
Don'tUse breadcrumbs as the primary navigation — they supplement a sidebar or top nav, not replace it.
Don'tShow breadcrumbs on top-level pages that have no parent — they add clutter without helping the user.
Don'tLet the trail grow beyond 5 levels — if you need more, consider simplifying the page hierarchy instead.

Sub-components

Breadcrumbs is a compound component with 2 sub-components.

XDSBreadcrumbItem

Individual breadcrumb item that renders as a link when href is provided, or as plain text for the current page.
PropTypeDescription
childrenrequired
ReactNodeLabel content for the breadcrumb item.
href
stringURL the breadcrumb links to; omit for non-navigable items.
onClick
(e: MouseEvent) => voidClick handler for the breadcrumb item.
isCurrent
boolean (default: false)Marks this item as the current page, applying aria-current="page".
startIcon
ReactNodeIcon rendered before the item label.
as
XDSLinkComponentTypeCustom link component to render instead of <a>. Overrides the provider-level default from XDSLinkProvider. Only applies to non-current items.

XDSBreadcrumbs

Navigation container that renders a <nav> with an ordered list of breadcrumb items.
PropTypeDescription
childrenrequired
ReactNodeXDSBreadcrumbItem elements to render inside the breadcrumb trail.
separator
ReactNode (default: '/')Separator rendered between breadcrumb items.
variant
'default' | 'supporting' (default: 'default')Visual variant — supporting is smaller with secondary text styling.
label
string (default: 'Breadcrumb')Accessible label for the nav landmark (aria-label).
xstyle
StyleXStylesStyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.

Examples

Common configurations, variations, and states.
Breadcrumbs — Separators
Swap the default
Breadcrumbs — Deep Path
A 5-level breadcrumb trail for deeply nested content. Use in e-commerce, file browsers, or any UI with several levels of hierarchy.
Breadcrumbs — Variants
Compare the default and supporting variants side by side. Use the supporting variant in dense UIs like admin panels where the breadcrumb should be subtle.
Breadcrumbs — Icons
Add icons before breadcrumb labels for quick recognition. Use a home icon on the root item and contextual icons on key sections.