Skip to content
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

Support styled-components #92

Open
mlenser opened this issue Feb 13, 2022 · 1 comment
Open

Support styled-components #92

mlenser opened this issue Feb 13, 2022 · 1 comment

Comments

@mlenser
Copy link

mlenser commented Feb 13, 2022

styled-components is an official option for MUI 5 on https://mui.com/getting-started/installation/:

MUI is using emotion as a styling engine by default. If you want to use styled-components instead, run:
// with yarn
yarn add @mui/material @mui/styled-engine-sc styled-components

Can styled-components be supported ny this plugin? Thanks

@Talaxy009
Copy link

As this document says https://mui.com/material-ui/guides/styled-engine/

❗ Warning: Using styled-components as an engine at this moment is not working when used in a SSR projects. The reason is that the babel-plugin-styled-components is not picking up correctly the usages of the styled() utility inside the @mui packages. For more details, take a look at this issue. We strongly recommend using emotion for SSR projects.

I think it's better to use emotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants