-
-
Notifications
You must be signed in to change notification settings - Fork 106
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Responsive styles with Emotion #68
Comments
Actually I managed to do this with the <h2
css={breakpoints({
xs: { display: "block" },
sm: { display: "none" },
})}
> |
So I'm giving a bit of feedback on this after trying the different options I had and I think there is no neat solution to do responsive styles using the Also Emotion |
@Grsmto for emotion you can use them inside the styled components at top level, at other places you have to pass the props manually. |
馃挰 Questions and Help
Hi!
For context, I'm coming from ThemeUI which is based at the core on Emotion. On ThemeUI I can do like this:
I'm trying to use responsive styles with the Emotion's
css
prop but I can't make it work.I tried the
breakpoints
function from@xstyled/system
, also tried the following:but doesn't seem to work.
Is there a way of doing this or it's simply a missing feature?
Thanks!
The text was updated successfully, but these errors were encountered: