mui-component
Version:
some custom mui components
26 lines (25 loc) • 1.39 kB
TypeScript
import React from 'react';
import { DesktopWrapperProps, DesktopWrapperSlotsComponent, DesktopWrapperSlotsComponentsProps, DateInputSlotsComponent } from '@mui/x-date-pickers/internals';
import { DateRangePickerViewSlotsComponent, DateRangePickerViewSlotsComponentsProps } from './DateRangePickerView';
import { BaseDateRangePickerProps } from './shared';
export interface DesktopDateRangePickerSlotsComponent extends DesktopWrapperSlotsComponent, DateRangePickerViewSlotsComponent, DateInputSlotsComponent {
}
export interface DesktopDateRangePickerSlotsComponentsProps extends DesktopWrapperSlotsComponentsProps, DateRangePickerViewSlotsComponentsProps {
}
export interface DesktopDateRangePickerProps<TInputDate, TDate> extends BaseDateRangePickerProps<TInputDate, TDate>, DesktopWrapperProps {
/**
* Overrideable components.
* @default {}
*/
components?: Partial<DesktopDateRangePickerSlotsComponent>;
/**
* The props used for each component slot.
* @default {}
*/
componentsProps?: Partial<DesktopDateRangePickerSlotsComponentsProps>;
}
type DesktopDateRangePickerComponent = (<TInputDate, TDate = TInputDate>(props: DesktopDateRangePickerProps<TInputDate, TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
propTypes?: any;
};
export declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
export {};