@mui/x-date-pickers-pro
Version:
The Pro plan edition of the Date and Time Picker components (MUI X).
34 lines (33 loc) • 1.42 kB
TypeScript
import * as React from 'react';
import { PickerValidDate } from '@mui/x-date-pickers/models';
import { DateOrTimeViewWithMeridiem, BaseTabsProps, ExportedBaseTabsProps } from '@mui/x-date-pickers/internals';
import { DateTimeRangePickerTabsClasses } from './dateTimeRangePickerTabsClasses';
import { UseRangePositionResponse } from '../internals/hooks/useRangePosition';
export interface ExportedDateTimeRangePickerTabsProps extends ExportedBaseTabsProps {
/**
* Toggles visibility of the tabs allowing view switching.
* @default `window.innerHeight < 667` for `DesktopDateTimeRangePicker` and `MobileDateTimeRangePicker`
*/
hidden?: boolean;
/**
* Date tab icon.
* @default DateRangeIcon
*/
dateIcon?: React.ReactElement;
/**
* Time tab icon.
* @default TimeIcon
*/
timeIcon?: React.ReactElement;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DateTimeRangePickerTabsClasses>;
}
export interface DateTimeRangePickerTabsProps extends ExportedDateTimeRangePickerTabsProps, BaseTabsProps<DateOrTimeViewWithMeridiem>, Pick<UseRangePositionResponse, 'rangePosition' | 'onRangePositionChange'> {
}
declare const DateTimeRangePickerTabs: {
<TDate extends PickerValidDate>(inProps: DateTimeRangePickerTabsProps): React.JSX.Element | null;
propTypes: any;
};
export { DateTimeRangePickerTabs };