You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a wrapper for react-select for a while called chakra-react-select. Its purpose it to create a version of react-select that is styled for the Chakra UI component library. In my implementation I've replaced every built in component with a Chakra UI alternative so they can take the custom Chakra styling props. I allow this custom styling through an extra prop I've added called chakraStyles which closely resembles the styles prop from this package, except it uses the SystemStyleObject styling from Chakra.
The only component I haven't figured out how to replace entirely is the MenuPortal component, which returns a context provider, PortalPlacementContext.Provider, that is not exported from the file. If anyone has any examples of replacing the MenuPortal without copying all of the code from that file, I'd really appreciate it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on a wrapper for
react-select
for a while calledchakra-react-select
. Its purpose it to create a version ofreact-select
that is styled for the Chakra UI component library. In my implementation I've replaced every built in component with a Chakra UI alternative so they can take the custom Chakra styling props. I allow this custom styling through an extra prop I've added calledchakraStyles
which closely resembles thestyles
prop from this package, except it uses theSystemStyleObject
styling from Chakra.The only component I haven't figured out how to replace entirely is the
MenuPortal
component, which returns a context provider,PortalPlacementContext.Provider
, that is not exported from the file. If anyone has any examples of replacing theMenuPortal
without copying all of the code from that file, I'd really appreciate it.For additional context: csandman/chakra-react-select#55
Beta Was this translation helpful? Give feedback.
All reactions