-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[system] Invalid PropType for Box #22982
Comments
@mnajdova What do you think about we drop this callback function API? |
Why would you like to remove it? I don't remember what was the reason I needed it but looks like it works now with <Box position="relative" height="100%" width="400px" clone>
<Search />
{/* {(boxProps: { className: string }) => <Search {...boxProps} />} */}
</Box> |
@darkowic Yes, the above proposal comes hand-in-hand with removing the The alternative would be the introduction of the |
Thanks for your explanation. I'm totally ok with removing the |
Current Behavior 😯
Using Box with function as children throws a PropType warning
Expected Behavior 🤔
No warning
Steps to Reproduce 🕹
https://codesandbox.io/s/goofy-glade-emf0h?file=/demo.js
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: