Breadcrumbs API
Importação
import Breadcrumbs from '@mui/material/Breadcrumbs';
// ou
import { Breadcrumbs } from '@mui/material';Nome do componente
The nameMuiBreadcrumbs can be used when providing default props or style overrides in the theme.Propriedades
Propriedades do componente nativo também estão disponíveis.
| Nome | Tipo | Padrão | Descrição | 
|---|---|---|---|
| children | node | O conteúdo do componente. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| component | elementType | 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 | integer | 1 | If max items is exceeded, the number of items to show after the ellipsis. | 
| itemsBeforeCollapse | integer | 1 | If max items is exceeded, the number of items to show before the ellipsis. | 
| maxItems | integer | 8 | Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first  itemsBeforeCollapseand lastitemsAfterCollapsewill be shown, with an ellipsis in between. | 
| separator | node | '/' | Custom separator node. | 
| sx | Array<func | object | bool> | func | object | The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details. | 
O
ref é encaminhado para o elemento raiz.CSS
| Nome da regra | Classe global | Descrição | 
|---|---|---|
| root | .MuiBreadcrumbs-root | Estilos aplicados ao elemento raiz. | 
| ol | .MuiBreadcrumbs-ol | Estilos aplicados a the ol element. | 
| li | .MuiBreadcrumbs-li | Estilos aplicados a the li element. | 
| separator | .MuiBreadcrumbs-separator | Estilos aplicados a the separator element. | 
Você pode sobrescrever o estilo do componente usando uma dessas opções de customização:
- With a global class name.
- With a rule name as part of the component's styleOverridesproperty in a custom theme.