-
Is there a way to custom the dropdown to use react-select? https://react-day-picker.js.org/basics/navigation#using-a-drop-down-to-change-the-month |
Beta Was this translation helpful? Give feedback.
Answered by
gpbl
Aug 17, 2022
Replies: 1 comment 10 replies
-
@brendonco never tried it with react-select, but you can try implementing your own dropdown component using it, and pass it to the import { DropdownProps } from 'react-day-picker';
function CustomDropDown(props: DropdownProps) {
return <ReactSelect/>
}
export function CustomDayPicker() {
return (
<DayPicker
components={{
Dropdown: CustomDropDown
}}
/>;
);
} https://react-day-picker.js.org/guides/custom-components Let us know how far you go! |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
brendonco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@brendonco never tried it with react-select, but you can try implementing your own dropdown component using it, and pass it to the
components
prop:https://react-day-picker.js.org/guides/custom-components
https://react-day-picker.js.org/api/interfaces/CustomComponents#dropdown
Let us know how far you go!