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
Right now, it seems like the Spacing utility classes are not available in certain components, for example I was trying to use them in my Buttons.
I'm not sure if this is by design or not, but I would expect to be able to use these class props on any of the components (and actually I would think the same should be true for the Sizing utility classes).
I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
I should be able to use margin and padding utility classes, and sizing utility classes, in components like Button.
Examples 🌈
Here are my components:
<Buttonwidth={300}m={5}px={5}>
No spacing
</Button><Boxwidth={400}p={1}my={1}bgcolor="grey.300">Width300</Box>
And what I get:
Motivation 🔦
I want to have buttons right next to each other with some margins in between them without having to create and add a className to those components.
The text was updated successfully, but these errors were encountered:
Right now, it seems like the Spacing utility classes are not available in certain components, for example I was trying to use them in my
Button
s.I'm not sure if this is by design or not, but I would expect to be able to use these class props on any of the components (and actually I would think the same should be true for the Sizing utility classes).
Summary 💡
I should be able to use margin and padding utility classes, and sizing utility classes, in components like
Button
.Examples 🌈
Here are my components:
And what I get:
Motivation 🔦
I want to have buttons right next to each other with some margins in between them without having to create and add a
className
to those components.The text was updated successfully, but these errors were encountered: