This release introduces a new resetOnSelect prop and adds support for the Hijri calendar.
Resetting Selections in Range Mode
When in range selection mode, use the new resetOnSelect prop to start a new range when a full range is already selected.
Hijri Calendar
To use the Hijri (Umm al-Qura) calendar, import DayPicker from react-day-picker/hijri:
import { DayPicker } from "react-day-picker/hijri";
export function HijriCalendar() {
return <DayPicker />;
}Read more in the documentation and play with it in playground.
What's Changed
- feat: Add Hijri calendar support (Umm al-Qura) by @ws-rush in #2904
- feat: New
resetOnSelectprop to reset date range when selecting date with completed range by @rodgobbi in #2906 - feat: add default
langprop to DayPicker root element by @gpbl in #2907
New Contributors
Full Changelog: v9.13.2...v9.14.0