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 😉 
DocumentationDatePicker

DatePicker

A date picker component with time selection, holiday support, and Custom Event calendar features.

Install Dependencies

npx
quickcode-ui add DatePicker

Examples

Default

Default DatePicker

Date & Time

Date & Time Selection

Business Calendar

Business Calendar

Holidays (New Year, Independence Day, Christmas)
Product Launch (Sep 15)
Quarterly Review (Oct 31)
• Weekends disabled • Holidays disabled • Past Date disabled

Props

PropTypeDefaultDescription
value?Date | nullControlled date value
defaultValue?DateDefault date when uncontrolled
onChange?(date: Date | null) => voidCallback fired when date changes
disabled?booleanfalseWhether the date picker is disabled
placeholder?string"Select date"Placeholder text when no date selected
includeTime?booleanfalseEnable time selection with hour/minute inputs
minDate?DateMinimum selectable date
maxDate?DateMaximum selectable date
holidays?Date[][]Holiday dates to highlight
specialDays?SpecialDay[][]Special dates with custom styling
disabledDates?Date[][]Specific dates to disable
disableWeekends?booleanfalseDisable Saturday and Sunday selection
disableHolidays?booleanfalseMake holiday dates non-selectable
showLegend?booleantrueShow color legend for holidays and events
className?stringAdditional CSS classes
triggerClassName?stringAdditional CSS classes for trigger button
contentClassName?stringAdditional CSS classes for calendar popup
format?(date: Date) => stringCustom date formatting function
Last updated on