[v2] Custom styles not passing data for components.Option
See original GitHub issueAre you reporting a bug or runtime error?
Click on the Select and see the error https://codesandbox.io/s/00zqzj8mjv
I’m trying to get the option
callback to pass the data
of my option, but it is returning undefined
when I’m using a custom component.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
React-Select - Replacing Components for custom option content
The data in props is where your option data is. ... If you want to style your option when it has been selected...
Read more >Styles - React Select
The recommended way to provide custom styles to react-select is to use the styles prop. styles takes an object with keys to represent...
Read more >How To Style React Components | DigitalOcean
In this tutorial, you'll learn three different ways to style React components: plain Cascading Style Sheets (CSS), inline styles with JavaScript ...
Read more >Customizing Reusable React-Select menu & options ...
In this case, it exposes the custom changeOptionsData props (which we will soon pass a function as it's value) we passed to the...
Read more >Create and Style Custom Components - Twilio Flex
It may not always be practical to define your styles alongside each component. Maybe you are using shared stylesheets across a suite of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @sahibjotsaggu !
https://codesandbox.io/s/32mq9qvwoq