export interface DateTimeFieldProps { /** * The name of the form field/input, used to set/track the field value in the form state. */ name: string; /** * The (accessible) label for the field - anything that can be rendered. * * You must always provide a label to ensure the field is accessible to users of * assistive technologies. */ label: React.ReactNode; /** * Required fields get additional markup/styling to indicate this validation requirement. */ isRequired?: boolean; /** * Readonly fields get marked as such in an accessible manner. */ isReadOnly?: boolean; /** * Additional description displayed close to the field - use this to document any * validation requirements that are crucial to successfully submit the form. More * information that is contextual/background typically belongs in a tooltip. */ description?: React.ReactNode; /** * Optional tooltip to provide additional information that is not crucial but may * assist users in filling out the field correctly. */ tooltip?: React.ReactNode; /** * Earliest date that is selectable in the calendar. */ minDate?: Date; /** * Latest date that is selectable in the calendar. */ maxDate?: Date; 'aria-describedby'?: string; /** * Marker to signal this field is used in a multi-value field parent, which requires * some special attention w/r to validation errors. */ isMultiValue?: boolean; } /** * Implements a form field to enter/select a date and time. * * Consists of a text input with a floating widget that toggles when focussing the field. This * floating widget contains a calendar where a date can be selected, and a time input where a * time can be selected. Suitable for nearby dates such as appointments. */ declare const DateTimeField: React.FC; export default DateTimeField;