<Breadcrumbs><Link href="#" color="inherit">Page 1</Link><Typography color="inherit">Page 2</Typography></Breadcrumbs>
Prop | Type | Default | Description |
---|---|---|---|
children | node | The breadcrumb children. | |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. | |
component | elementType | 'nav' | The component used for the root node. Either a string to use a HTML element or a component. |
expandText | string | 'Show path' | Override the default label for the expand button. For localization purposes, you can use the provided translations. |
itemsAfterCollapse | number | 1 | If max items is exceeded, the number of items to show after the ellipsis. |
itemsBeforeCollapse | number | 1 | If max items is exceeded, the number of items to show before the ellipsis. |
maxItems | number | 8 | Specifies 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. |
separator | node | '/' | Custom separator node. |
<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>