@kadconsulting/dry
Version:
KAD Reusable Component Library
15 lines (14 loc) • 441 B
TypeScript
/// <reference types="react" />
export interface DateTimePickerProps extends React.HTMLAttributes<HTMLElement> {
passProps?: object;
/** Support @testing-library/react `screen.getByTestId` */
'data-testid'?: string;
value: string | null;
onChange: (date: string | null) => void;
minDate?: string;
maxDate?: string;
militaryTime?: boolean;
label?: string;
onlyDate?: boolean;
onlyTime?: boolean;
}