UNPKG

@material-ui/lab

Version:
28 lines (27 loc) 978 B
import * as React from 'react'; import { DesktopDatePickerProps } from '../DesktopDatePicker'; import { MobileDatePickerProps } from '../MobileDatePicker'; export interface DatePickerProps<TDate = unknown> extends DesktopDatePickerProps<TDate>, MobileDatePickerProps<TDate> { /** * 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; } declare type DatePickerComponent = (<TDate>(props: DatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & { propTypes?: any; }; /** * * Demos: * * - [Date Picker](https://material-ui.com/components/date-picker/) * - [Pickers](https://material-ui.com/components/pickers/) * * API: * * - [DatePicker API](https://material-ui.com/api/date-picker/) */ declare const DatePicker: DatePickerComponent; export default DatePicker;