Render a totally different component instead of list items in React Select #5158
Unanswered
florinpavel22
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I was wondering if it's possible to render a component of my own, inside React Select, and 'connect' it with the rest of the library.
More specifically, I created a calendar component, which allows users to select a date or an interval of dates, and I want it to be displayed inside React Select, instead of the traditional list items.
I figured that one of the steps, to render the component, is possible, by providing a custom
Menu
component to React Select, that returns that specific calendar component, but now I am not sure if it's possible to "connect" it with theonChange
function and what else there is needed, so I can show for example in the Value Container, which date has been selected, etc.Beta Was this translation helpful? Give feedback.
All reactions