react-datetime-picker
Version:
A date range picker for your React app.
35 lines (34 loc) • 1.47 kB
TypeScript
import type { Detail } from './shared/types.js';
type DateTimeInputProps = {
amPmAriaLabel?: string;
autoFocus?: boolean;
className: string;
dayAriaLabel?: string;
dayPlaceholder?: string;
disabled?: boolean;
format?: string;
hourAriaLabel?: string;
hourPlaceholder?: string;
isWidgetOpen?: boolean | null;
locale?: string;
maxDate?: Date;
maxDetail?: Detail;
minDate?: Date;
minuteAriaLabel?: string;
minutePlaceholder?: string;
monthAriaLabel?: string;
monthPlaceholder?: string;
name?: string;
nativeInputAriaLabel?: string;
onChange?: (value: Date | null, shouldCloseWidgets: boolean) => void;
onInvalidChange?: () => void;
required?: boolean;
secondAriaLabel?: string;
secondPlaceholder?: string;
showLeadingZeros?: boolean;
value?: string | Date | null;
yearAriaLabel?: string;
yearPlaceholder?: string;
};
export default function DateTimeInput({ amPmAriaLabel, autoFocus, className, dayAriaLabel, dayPlaceholder, disabled, format, hourAriaLabel, hourPlaceholder, isWidgetOpen: isWidgetOpenProps, locale, maxDate, maxDetail, minDate, minuteAriaLabel, minutePlaceholder, monthAriaLabel, monthPlaceholder, name, nativeInputAriaLabel, onChange: onChangeProps, onInvalidChange, required, secondAriaLabel, secondPlaceholder, showLeadingZeros, value: valueProps, yearAriaLabel, yearPlaceholder, }: DateTimeInputProps): React.ReactElement;
export {};