material-ui-pickers-v4
Version:
React components, that implements material design pickers for material-ui v4 with updated material ui
46 lines (45 loc) • 1.41 kB
TypeScript
import * as React from 'react';
import { WrapperProps } from './Wrapper';
import { Omit } from '../_helpers/utils';
import { DialogActionsProps, DialogContentProps, DialogProps as MuiDialogProps } from '@material-ui/core';
export interface ModalWrapperProps<T = {}> extends WrapperProps<T> {
/**
* "OK" label message
* @default "OK"
*/
okLabel?: React.ReactNode;
/**
* "CANCEL" label message
* @default "CANCEL"
*/
cancelLabel?: React.ReactNode;
/**
* "CLEAR" label message
* @default "CLEAR"
*/
clearLabel?: React.ReactNode;
/**
* "TODAY" label message
* @default "TODAY"
*/
todayLabel?: React.ReactNode;
/**
* If true today button will be displayed <b>Note*</b> that clear button has higher priority
* @default false
*/
showTodayButton?: boolean;
/**
* Show clear action in picker dialog
* @default false
*/
clearable?: boolean;
/**
* Props to be passed directly to material-ui Dialog
* @type {Partial<MuiDialogProps>}
*/
DialogProps?: Partial<Omit<MuiDialogProps, 'classes'>>;
DialogComponent?: React.ComponentType<MuiDialogProps>;
DialogActionsComponent?: React.ComponentType<DialogActionsProps>;
DialogContentComponent?: React.ComponentType<DialogContentProps>;
}
export declare const ModalWrapper: React.FC<ModalWrapperProps<any>>;