Examples
Default
With Disabled Dates
Without Footer
Single Selection
Custom Labels
Props
DatePicker
A calendar date picker supporting single-date and date-range selection with optional side-by-side month display and footer action buttons. Built on top of react-day-picker — allDayPickerProps (except numberOfMonths) are forwarded.
string
default:"Apply"
Label for the apply button.
string
default:"Cancel"
Label for the cancel button.
string
Additional CSS class name for the outer container. Class name to add to the root element.
(() => void)
Callback fired when the Apply button is clicked.
(() => void)
Callback fired when the Cancel button is clicked.
Whether to render the cancel / apply footer buttons.
"single" | "double"
default:"single"
Display one month or two side-by-side.
Exported types
Also exported from@fanvue/ui/date-picker: DatePickerOwnProps, DatePickerProps, DatePickerVariant, DateRange.
Setup: Installation · Theming · Subpath exports