DateField
View Source
Props
Themeable
Accepts Input props.
Use the dateField
key in ThemeProvider
to customize the default properties of this component.
calendarProps
ComponentProps
Accepts any valid Calendar props.
defaultOpen
boolean
Controls the initial Popover state: open or closed (default).
formatValue
string
Format the displayed date using date-fns format function.
keepInView
boolean
Attempts to keep popover in view clipping edges if too large.
lockScrollWhileOpen
boolean
Locks external scrollbars when open.
maxDate
Date
The maximum date that can be chosen.
minDate
Date
The minimum date that can be chosen.
onChange
(date: Date) => void
Called when a date has been selected.
placement
string
Determines where the popover is placed.
popoverProps
ComponentProps
Accepts any valid Popover props.
value
Date | undefined | null
The date that will be selected.