@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
22 lines • 1.35 kB
TypeScript
import { DesktopTimeRangePickerProps, DesktopTimeRangePickerSlots, DesktopTimeRangePickerSlotProps } from "../DesktopTimeRangePicker/index.js";
import { MobileTimeRangePickerProps, MobileTimeRangePickerSlots, MobileTimeRangePickerSlotProps } from "../MobileTimeRangePicker/index.js";
export interface TimeRangePickerSlots extends DesktopTimeRangePickerSlots, MobileTimeRangePickerSlots {}
export interface TimeRangePickerSlotProps<TEnableAccessibleFieldDOMStructure extends boolean> extends DesktopTimeRangePickerSlotProps<TEnableAccessibleFieldDOMStructure>, MobileTimeRangePickerSlotProps<TEnableAccessibleFieldDOMStructure> {}
export interface TimeRangePickerProps<TEnableAccessibleFieldDOMStructure extends boolean = true> extends DesktopTimeRangePickerProps<TEnableAccessibleFieldDOMStructure>, Omit<MobileTimeRangePickerProps<TEnableAccessibleFieldDOMStructure>, 'views'> {
/**
* CSS media query when `Mobile` mode will be changed to `Desktop`.
* @default '@media (pointer: fine)'
* @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
*/
desktopModeMediaQuery?: string;
/**
* Overridable component slots.
* @default {}
*/
slots?: TimeRangePickerSlots;
/**
* The props used for each component slot.
* @default {}
*/
slotProps?: TimeRangePickerSlotProps<TEnableAccessibleFieldDOMStructure>;
}