Skip to content

Documentation / @jalali-js/react / useCalendar

Function: useCalendar()

useCalendar(options?): UseCalendarResult

Defined in: react/src/use-calendar.ts:38

The calendar's own reactive state: a date and a setDate, plus format() bound to the hook's locale, and the calendar system's isLeapYear()/daysInMonth()/today(). This is the low-level hook DatePicker (and any custom UI) is built on; it holds no opinion on how that date gets displayed or stored (see architecture.md's "Display value against storage value" for where that split lives).

Parameters

options?

UseCalendarOptions = {}

Returns

UseCalendarResult