UNPKG

@nateradebaugh/react-datetime

Version:

A lightweight but complete datetime picker React.js component

16 lines (15 loc) 591 B
/// <reference types="react" /> import { TimeConstraints, FormatOptions, ViewMode } from "./index"; export interface TimeViewProps { viewTimestamp: Date; dateFormat: string; setViewMode: (newViewMode: ViewMode) => void; timeFormat: string; formatOptions: FormatOptions; setSelectedDate: (newDate: Date, tryClose?: boolean) => void; setViewTimestamp: (newViewTimestamp: Date | undefined) => void; readonly?: boolean; timeConstraints?: TimeConstraints; } declare function TimeView(props: TimeViewProps): JSX.Element; export default TimeView;