@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
44 lines (43 loc) • 1.58 kB
TypeScript
import * as React from 'react';
import { DateOrTimeViewWithMeridiem } from '../internals/models';
import { DateTimePickerTabsClasses } from './dateTimePickerTabsClasses';
import { BaseTabsProps, ExportedBaseTabsProps } from '../internals/models/props/tabs';
import { PickerValidDate } from '../models';
export interface ExportedDateTimePickerTabsProps extends ExportedBaseTabsProps {
/**
* Toggles visibility of the tabs allowing view switching.
* @default `window.innerHeight < 667` for `DesktopDateTimePicker` and `MobileDateTimePicker`, `displayStaticWrapperAs === 'desktop'` for `StaticDateTimePicker`
*/
hidden?: boolean;
/**
* Date tab icon.
* @default DateRange
*/
dateIcon?: React.ReactNode;
/**
* Time tab icon.
* @default Time
*/
timeIcon?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DateTimePickerTabsClasses>;
}
export interface DateTimePickerTabsProps extends ExportedDateTimePickerTabsProps, BaseTabsProps<DateOrTimeViewWithMeridiem> {
}
/**
* Demos:
*
* - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
*
* API:
*
* - [DateTimePickerTabs API](https://mui.com/x/api/date-pickers/date-time-picker-tabs/)
*/
declare const DateTimePickerTabs: {
<TDate extends PickerValidDate>(inProps: DateTimePickerTabsProps): React.JSX.Element | null;
propTypes: any;
};
export { DateTimePickerTabs };