How to properly receive props data in react-select's custom component? #5340
-
I created a custom component to customize the control field, for me to place a custom label with animation. And I can't figure out where to place or receive that prop.
I tried placing the custom control component inside my Here's my codesandbox for you to play around with. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Check out the TypeScript documentation, specifically around adding custom props to the You can access the props passed to the
|
Beta Was this translation helpful? Give feedback.
Check out the TypeScript documentation, specifically around adding custom props to the
Select
component.You can access the props passed to the
Select
component usingprops.selectProps
inside yourControl
component.