-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[v5] No documented way of importing css or keyframes for styled-components #28905
Comments
It doesn't look like this bug report has enough info for one of us to reproduce it. Please provide a CodeSandbox (https://material-ui.com/r/issue-template-latest), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve |
I'm guess I'm gonna copy the original comment here
Where should I import { css } from? Following gives me errors:
Gives big ts error ending in With But I think that results in 2 instances of name generator in the app, breaking class names in ssr And I guess I wanna cc @mnajdova |
If you want to use MUI with styled-components you will need |
Given the documentation: I cannot import anything from |
As per #28657 (comment).
All other sections not applicable, really.
emotion
has documentation for css prop: https://mui.com/guides/interoperability/#the-css-prop, but notstyled-components
The text was updated successfully, but these errors were encountered: