Skip to Content
ComponentsNavigationBreadcrumbs

Breadcrumbs

A navigation component that displays a linear path of links showing the user's current location in a hierarchy. 

With Icon

With Separator

Sizes

Use the breadcrumbs-{size} class to control the component size.

Size values can include:smmd.

For more information on all available sizing utilities, visit Tailwind 

Palette

Use the text-{color} class to control the component color. Refer to the Colors documentation to see all available color and shade options.

For more information on all available color utilities, visit Tailwind .

Customizing

globals.css
:root { --ex-breadcrumbs-font-family: var(--font-sans); --ex-breadcrumbs-font-weight: var(--font-weight-regular); --ex-breadcrumbs-font-size-sm: var(--text-xs); --ex-breadcrumbs-font-size-md: var(--text-sm); --ex-breadcrumbs-gap-x-sm: calc(var(--spacing) * 0.25); --ex-breadcrumbs-gap-x-md: calc(var(--spacing) * 0.5); --ex-breadcrumbs-link-gap-x-sm: calc(var(--spacing) * 1.5); --ex-breadcrumbs-link-gap-x-md: calc(var(--spacing) * 2); --ex-breadcrumbs-separator-opacity: var(--ex-options-opacity-subtle); --ex-breadcrumbs-current-link-font-weight: var(--font-weight-medium); }

API

ElementSelector
Breadcrumbs.ex-breadcrumbs
PropTypeDefault
asElementTypenav
asChildbooleanfalse
ElementSelector
Breadcrumbs.List.ex-breadcrumbs-list
PropTypeDefault
asElementTypediv
asChildbooleanfalse
ElementSelector
Breadcrumbs.Item.ex-breadcrumbs-item
PropTypeDefault
asElementTypediv
asChildbooleanfalse
ElementSelector
Breadcrumbs.Link.ex-breadcrumbs-link
PropTypeDefault
asElementTypea
asChildbooleanfalse
ElementSelector
Breadcrumbs.CurrentLink.ex-breadcrumbs-current-link
PropTypeDefault
asElementTypea
asChildbooleanfalse
ElementSelector
Breadcrumbs.Separator.ex-breadcrumbs-separator
PropTypeDefault
asElementTypediv
asChildbooleanfalse
Last updated on