Breadcrumbs

A set of links for navigation

<Breadcrumbs>
<Link href="#" color="inherit">Page 1</Link>
<Typography color="inherit">Page 2</Typography>
</Breadcrumbs>

Props

PropTypeDefaultDescription
childrennodeThe breadcrumb children.
classesobjectOverride or extend the styles applied to the component. See CSS API below for more details.
componentelementType'nav'The component used for the root node. Either a string to use a HTML element or a component.
expandTextstring'Show path'Override the default label for the expand button. For localization purposes, you can use the provided translations.
itemsAfterCollapsenumber1If max items is exceeded, the number of items to show after the ellipsis.
itemsBeforeCollapsenumber1If max items is exceeded, the number of items to show before the ellipsis.
maxItemsnumber8Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first itemsBeforeCollapse and last itemsAfterCollapse will be shown, with an ellipsis in between.
separatornode'/'Custom separator node.

Examples

<Breadcrumbs>
<Link href="#" color="inherit">
<ArrowLeft />
Back to Previous Page
</Link>
</Breadcrumbs>

<Breadcrumbs>
<Link href="#" color="inherit">Page 1</Link>
<Link href="#" color="inherit">Page 2</Link>
<Typography color="inherit">Page 3</Typography>
</Breadcrumbs>