-
Hey guys! First off thanks for the great work on this library. I was wondering — is there a reason why fields such as Context: I'm using custom components for both E.g.: // ideally `MyCustomButton` would be able to access config fields such as `showOutsideDays` via context
DayButton: MyCustomDayButton
// right now that is not the case, so have to do this, which:
// - causes many mounts/unmounts, and
// - breaks custom select/deselect button styles within my custom button component (because of those mounts/unmounts)
DayButton: props => <MyCustomDayButton {...props} showOutsideDays={showOutsideDays} /> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@ImXico that's a good suggestions, we can make it return the props. |
Beta Was this translation helpful? Give feedback.
-
I’ve added a Would it work for you, @ImXico? |
Beta Was this translation helpful? Give feedback.
I’ve added a
dayPickerProps
to the values returned byuseDayPicker
in #2572.Would it work for you, @ImXico?