Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationDateRangePicker

DateRangePicker

A date range picker component for selecting start and end dates with visual range highlighting and preset options.

Install Dependencies

npx
quickcode-ui add DateRangePicker

Examples

Default

Advanced

Custom Formatting

Props

PropTypeDefaultDescription
value?DateRangeControlled date range value
defaultValue?DateRange{ start: null, end: null }Default date range when uncontrolled
onChange?(range: DateRange) => voidCallback fired when date range changes
disabled?booleanfalseWhether the date picker is disabled
placeholder?string"Select date range"Placeholder text when no dates selected
locale?string"en-IN"Locale for date formatting
minDate?DateMinimum selectable date
maxDate?DateMaximum selectable date
maxRange?numberMaximum number of days that can be selected
minRange?numberMinimum number of days that must be selected
highlightedDates?DateHighlight[][]Array of dates to highlight with custom styling
disabledDates?Date[][]Array of dates that should be disabled
holidays?Date[][]Array of holiday dates to highlight
specialDays?SpecialDay[][]Array of special days with custom styling and labels
disableWeekends?booleanfalseWhether to disable weekend selection
disableHolidays?booleanfalseWhether to disable holiday selection
presets?DateRangePreset[]Default presetsArray of preset date ranges for quick selection
showLegend?booleantrueWhether to show the legend for holidays and special days
className?stringAdditional CSS classes for the container
triggerClassName?stringAdditional CSS classes for the trigger button
contentClassName?stringAdditional CSS classes for the dropdown content
format?(range: DateRange) => stringCustom function to format the displayed date range
Last updated on