Function: useDayPicker()
useDayPicker<
T
>():DayPickerContext
<T
>
Defined in: src/useDayPicker.ts:83
Provides access to the DayPicker context, which includes properties and methods to interact with the DayPicker component. This hook must be used within a custom component.
Type Parameters
Type Parameter | Description |
---|---|
T extends { mode : Mode ; required : boolean ; } | Use this type to refine the returned context type with a specific selection mode. |
Returns
The context to work with DayPicker.
Throws
If the hook is used outside of a DayPicker provider.