-
-
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] Prefer styled-components's css prop over Box css #18962
Comments
Could you follow the issue template and include a code example and describe what you expect the transpiled output should look like? |
If you want inline styles you can use styles prop |
@lcswillems What do you think about this plan? #22819 (comment) |
I am not sure about what you ask me to think about precisely but I largely prefer option 2 ("write them under one prop") over the other one for these reasons:
I hope my answer helps, and if I answered about the good thing. |
Now that we have the |
Summary 💡
A
css
prop had been added in Styled-components v4: https://www.styled-components.com/docs/api#css-prop. It is a very handy way to stylize a component, and personnaly I use it a lot.However, it doesn't work on the
Box
component becauseBox
has already acss
property. I think it would be preferable not to have one to make it possible to use Styled-components one.The text was updated successfully, but these errors were encountered: