Replies: 1 comment
-
If you need to just add props to the Control const { innerProps, ...rest } = props;
return <components.Control { ...rest, innerProps: { ...innerProps, someDivProp: someValue }} />; Otherwise you could just copy-paste the |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
https://codesandbox.io/s/96w3y?module=/example.tsx Here is an example for custom control by this library creators.
The problem is control is not being replaced. Instead it just adds a wrapper around the control.
What's the correct way to replace control element itself with my own component but without losing props?
Beta Was this translation helpful? Give feedback.
All reactions