Skip to main content
Version: 9.14.0

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​

Returns​

DayPickerContext<T>

The context to work with DayPicker.

Throws​

If the hook is used outside of a DayPicker provider.

See​

https://daypicker.dev/guides/custom-components