Breadcrumbs
Breadcrumbs allow users to make selections from a range of values by navigating through the hierarchy.Basic Breadcrumbs
A simple breadcrumb navigation using typography and link components.Custom Separator
Use theseparator prop to change the separator character.
Breadcrumbs with Icons
Incorporate icons alongside text labels.Collapsed Breadcrumbs
When there are many breadcrumb items, usemaxItems to limit the visible items.
Customized Collapsed Items
Control which items appear before and after the ellipsis.Props
separator
- Type:
React.ReactNode - Default:
'/' - Description: Custom separator node between breadcrumb items
maxItems
- Type:
number - Default:
8 - Description: Specifies the maximum number of breadcrumbs to display. When exceeded, only the first
itemsBeforeCollapseand lastitemsAfterCollapseare shown with an ellipsis in between
itemsBeforeCollapse
- Type:
number - Default:
1 - Description: If max items is exceeded, the number of items to show before the ellipsis
itemsAfterCollapse
- Type:
number - Default:
1 - Description: If max items is exceeded, the number of items to show after the ellipsis
expandText
- Type:
string - Default:
'Show path' - Description: Override the default label for the expand button. Used for localization
component
- Type:
React.ElementType - Default:
'nav' - Description: The component used for the root node
slots
- Type:
{ CollapsedIcon?: React.ElementType } - Description: The components used for each slot inside the breadcrumb
slotProps
- Type:
{ collapsedIcon?: object } - Description: The props used for each slot inside the breadcrumb
sx
- Type:
SxProps<Theme> - Description: System prop for defining CSS styles
Accessibility
- Use
aria-labelon theBreadcrumbscomponent to describe the type of navigation - The last breadcrumb is automatically marked as
aria-current="page" - The expand button is properly labeled for screen readers