Constraints and holidays
Limit selectable dates, then optionally add named holiday data.
Use this page after choosing a selection mode when some dates must be unavailable or need a visible name.
Limit available dates
Use built-in props for common availability rules. They work on both Calendar
and DatePicker and can be combined:
Use disabledDates, enabledDates, disabledMonths, disabledYears, or
isDateDisabled for rules that do not fit those common cases.
Add holiday names
Use holidayData to attach a name to a local JavaScript date. Set
showHolidays to expose a marker and tooltip; set holidaysSelectable={false}
when those dates must also be unavailable.
Install the dataset you use:
@alydev/holidays-iran contains maintained Iranian public holidays from Jalali
years 1400 through 1420. @alydev/holidays-international contains New Year's
Day and Christmas Day for 2000 through 2100.
Your own data
Pass the same small shape for company closures or another holiday source:
holidays is separate from holidayData: it only blocks plain Date values
and does not provide a label or marker.
Next: style those states, or see the API reference.