Breadcrumbs

Breadcrumbs

Navigation

Navigation breadcrumbs to show the current page location within a hierarchical structure.

Preview

Standard breadcrumb navigation

Separator Variants

Different separator styles

Chevron (default)

Slash

Dot

With Icons

Breadcrumbs with leading home icon

Truncated

Collapsed breadcrumbs for deep hierarchies, click the ellipsis to expand

Props

Breadcrumbs component API reference

PropTypeDefaultDescription
items*BreadcrumbItem[]—Items with label, optional href, icon and iconOnly. The last item is the current page
separator'chevron' | 'slash' | 'dot''chevron'Separator style between items
showHomebooleanfalsePrepend a Home item that links to /
maxItemsnumber—Collapse the middle items behind an expandable ellipsis above this count
classNamestring—Additional CSS classes

Usage

Import and implementation example

import { Breadcrumbs } from '@/components/ui/breadcrumbs'
<Breadcrumbs
items={[
{ label: 'Home', href: '/' },
{ label: 'Projects', href: '/projects' },
{ label: 'Design System', href: '/projects/design' },
{ label: 'Components' },
]}
separator="chevron"
showHome
/>

Features

Built-in functionality

  • Three separator styles: Chevron, slash, and dot separators
  • Home icon: Optional home icon as first breadcrumb
  • Truncation: Collapse middle items for deep paths
  • Accessible: Proper nav landmark and aria-current

Accessibility

ARIA support and keyboard navigation

ARIA Attributes

nav element with aria-label="Breadcrumb"aria-current="page" on current pageOrdered list (ol) for semantic structure

Keyboard Navigation

KeyAction
TabNavigate between breadcrumb links
EnterFollow breadcrumb link

Notes

  • Uses nav landmark for screen reader navigation
  • Current page is not a link (non-interactive)
  • Separator is decorative (hidden from screen readers)

Related Components