Calendar options
useCalendar
hook gets an object of type CalendarOptions
- this allows you to set your desired configuration and behavior. Each of the options has its default (see below) and you can call the hook without the options object.
The month to start from
number
today's month
The year to start from
number
today's year
Number of months that are displayed to the user to select from
number
1
Wether the calendar instance is a range picker, allowing the user to select 2 dates representing a range
boolean
false
The minimal date that can be selected by the user
Date
undefined
The maximum date that can be selected by the user
Date
undefined
Should the user be allowed to choose future dates.
boolean
true
Should the user be allowed to choose past dates.
boolean
true
The locale to be used
string
en
Last updated