@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
26 lines (25 loc) • 1.3 kB
TypeScript
import { BaseDateTimePickerProps, BaseDateTimePickerSlots, BaseDateTimePickerSlotProps } from '../DateTimePicker/shared';
import { StaticOnlyPickerProps, UseStaticPickerSlots, UseStaticPickerSlotProps } from '../internals/hooks/useStaticPicker';
import { MakeOptional } from '../internals/models/helpers';
import { DateOrTimeView, PickerValidDate } from '../models';
export interface StaticDateTimePickerSlots<TDate extends PickerValidDate> extends BaseDateTimePickerSlots<TDate>, UseStaticPickerSlots<TDate, DateOrTimeView> {
}
export interface StaticDateTimePickerSlotProps<TDate extends PickerValidDate> extends BaseDateTimePickerSlotProps<TDate>, UseStaticPickerSlotProps<TDate, DateOrTimeView> {
}
export interface StaticDateTimePickerProps<TDate extends PickerValidDate> extends BaseDateTimePickerProps<TDate, DateOrTimeView>, MakeOptional<StaticOnlyPickerProps, 'displayStaticWrapperAs'> {
/**
* Overridable component slots.
* @default {}
*/
slots?: StaticDateTimePickerSlots<TDate>;
/**
* The props used for each component slot.
* @default {}
*/
slotProps?: StaticDateTimePickerSlotProps<TDate>;
/**
* Years rendered per row.
* @default `4` when `displayStaticWrapperAs === 'desktop'`, `3` otherwise.
*/
yearsPerRow?: 3 | 4;
}