Breadcrumb

Indicates the current page's location within a navigational hierarchy.

Usage

Basic Breadcrumb

Render a Breadcrumb with a list of items.

<Breadcrumb
items={[
{ key: 'home', href: '/', title: 'Home', active: false },
{ key: 'docs', href: '/docs', title: 'Docs', active: false },
{ key: 'api', href: '/docs/api', title: 'API', active: true },
]}
/>

Custom Divider

Use a custom divider instead of the default.

<Breadcrumb
items={[
{ key: 'home', href: '/', title: 'Home', active: false },
{ key: 'docs', href: '/docs', title: 'Docs', active: false },
{ key: 'api', href: '/docs/api', title: 'API', active: true },
]}
divider={<Icon type={'Zap'} />}
/>

Color & High Contrast

Customize the breadcrumb's appearance using color and highContrast props.

<Breadcrumb
items={[
{ key: 'home', href: '/', title: 'Home', active: false },
{ key: 'docs', href: '/docs', title: 'Docs', active: false },
{ key: 'api', href: '/docs/api', title: 'API', active: true },
]}
color="grass"
highContrast={false}
/>

Variants

Inverse the breadcrumb's appearance using variant props.

<Breadcrumb
variant={'inverse'}
items={[
{ key: 'home', href: '/', title: 'Home', active: false },
{ key: 'docs', href: '/docs', title: 'Docs', active: false },
{ key: 'api', href: '/docs/api', title: 'API', active: true },
]}
color="grass"
highContrast={false}
/>

API

Props

Breadcrumb

PropTypeDefaultRequired
variant'normal' | 'inverse''normal'-
itemsBreadcrumbItem[]-Yes
dividerReactNode'/'-
colorThemeAccentColor--
highContrastbooleanfalse-
MarginPropsToken<MarginProps>--

Breadcrumb Item

PropTypeDefaultRequired
keystring-Yes
hrefstring-Yes
titlestring-Yes
activeboolean-Yes
App Bar
Previous
Dropdown Menu
Next