How to use responsive style props for size
attribute?
#7137
Unanswered
basememara
asked this question in
Q&A
Replies: 1 comment
-
https://mantine.dev/styles/responsive/#component-size-based-on-media-query |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I keep wanting to use the cool response style props for the
size
attribute but haven't found a good alternative. I'm trying to do something like this:I tried using
useMediaQuery
and thesx
, but they are verbose and sometimes needed in SSR components. Is there a reason why this the responsive style props aren't available forsize
or am I missing a more idiomatic way to achieve this?Thanks for an amazing and beautiful library!
Beta Was this translation helpful? Give feedback.
All reactions