BottomNavigation API
Importação
import BottomNavigation from '@mui/material/BottomNavigation';
// ou
import { BottomNavigation } from '@mui/material';Nome do componente
The nameMuiBottomNavigation 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. | |
| onChange | func | Callback fired when the value changes. Signature: function(event: object, value: any) => voidevent: The event source of the callback. Warning: This is a generic event not a change event. value: We default to the index of the child. | |
| showLabels | bool | false | If  true, allBottomNavigationActions will show their labels. By default, only the selectedBottomNavigationActionwill show its label. | 
| 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. | |
| value | any | The value of the currently selected  BottomNavigationAction. | 
O
ref é encaminhado para o elemento raiz.CSS
| Nome da regra | Classe global | Descrição | 
|---|---|---|
| root | .MuiBottomNavigation-root | Estilos aplicados ao elemento raiz. | 
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.