UNPKG

@gpa-gemstone/react-forms

Version:
19 lines (18 loc) 615 B
import * as moment from 'moment'; import { Accuracy } from './DateTimeUI/Clock'; import { Gemstone } from '@gpa-gemstone/application-typings'; export type TimeUnit = ('datetime-local' | 'date' | 'time'); interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> { Valid: (field: keyof T) => boolean; Feedback?: string; Format?: string; Type?: TimeUnit; AllowEmpty?: boolean; Accuracy?: Accuracy; MinDate?: moment.Moment; } /** * Component that allows a user to pick a date or datetime. */ export default function DateTimePicker<T>(props: IProps<T>): JSX.Element; export {};