-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MuiPickersBasePicker styles to the ts overrides definitions #1414
Comments
having the same question. the standalone "calendar" component resizes according to the container width. the static datepicker does not. i'd use the calendar component but it doesn't have the ability to pick a year. |
MuiPickersBasePicker: {
pickerView: {
maxWidth: 400
},
} This should work |
works like a charm! i suppose the spacing between the numbers in the calendar is fixed width, right? |
Yes, I think |
it should work regardless of the error message. at least for me it worked nonetheless. adding the following got rid of the error message for me. though i'm just starting to experiment with typescript and am not sure if this is the proper and "best" way to do so.
|
works perfect now, thank you so much... |
@dmtrKovalenko Are there any updates on the PR ? |
If somebody else encounters a TypeScript error in material-ui type definitions after using import { MuiPickersOverrides } from '@material-ui/pickers/typings/overrides';
type OverridesNameToClassKey = {
- [P in keyof MuiPickersOverrides]: keyof MuiPickersOverrides[P];
+ [P in keyof Required<MuiPickersOverrides>]: keyof MuiPickersOverrides[P];
};
declare module '@material-ui/core/styles/overrides' {
export interface ComponentNameToClassKey extends OverridesNameToClassKey {}
}
|
I would like to remove the max-width: 325px to make center the calendar....but I can't find any of the following overrides.
any ideas:
The text was updated successfully, but these errors were encountered: