Box component and its boxSystemProps #2286
Unanswered
vitorleonel
asked this question in
General
Replies: 1 comment 2 replies
-
Could you be more specific about "custom properties"? Do you mean creating your own components wrapping Box with React props, or CSS custom properties? |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I noticed that now a days we have a list of valid properties inside the Box component and before we use the
rest
variable to spread the properties to the Component we have a foreach removing the invalid ones.Does anybody knows if we have a way or a pattern to use custom properties in this case?
https://github.com/system-ui/theme-ui/blob/develop/packages/components/src/Box.tsx
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions