react-day-picker
react-day-picker copied to clipboard
useDayPicker missing properties in v9
In v8, useDayPicker
returned classNames
, styles
and components
among other things. This allowed for easy recomposition for more complex layouts in custom components. This no longer works in v9.
Code
// these are no longer available in v9
const { classNames, styles, components } = useDayPicker();
Expected Behavior
Expected useDayPicker
in v9 to return more of the v8 properties, at least those related to styling and components.
- v8: https://daypicker.dev/v8/api/interfaces/DayPickerContextValue
- v9: https://daypicker.dev/api/type-aliases/DayPickerContext
Screenshot
Here's basically what I'm trying to move from v8 to v9 and why those props would be useful: