MonthPicker API
Documentação da API para o componente React MonthPicker . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import MonthPicker from '@mui/lab/MonthPicker';
// ou
import { MonthPicker } from '@mui/lab';Nome do componente
The nameMuiMonthPicker can be used when providing default props or style overrides in the theme.Propriedades
| Nome | Tipo | Padrão | Descrição |
|---|---|---|---|
| date* | any | Date value for the MonthPicker | |
| maxDate* | any | Maximal selectable date. | |
| minDate* | any | Minimal selectable date. | |
| onChange* | func | Callback fired on date change. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| className | string | className applied to the root element. | |
| disableFuture | bool | false | If true future days are disabled. |
| disablePast | bool | false | If true past days are disabled. |
| sx | 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 | .MuiMonthPicker-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.