DateField

View Source

Example with day/month/year format

Props

Themeable

Accepts Input props.

Use the dateField key in ThemeProvider to customize the default properties of this component.

calendarPropsComponentProps

Accepts any valid Calendar props.

Controls the initial Popover state: open or closed (default).

Format the displayed date using date-fns format function.

keepInViewboolean

Attempts to keep popover in view clipping edges if too large.

Locks external scrollbars when open.

The maximum date that can be chosen.

The minimum date that can be chosen.

onChange(date: Date) => void

Called when a date has been selected.

placementstring

Determines where the popover is placed.

popoverPropsComponentProps

Accepts any valid Popover props.

valueDate | undefined | null

The date that will be selected.