Carousel Responsiveness #3448
Unanswered
Alex-Van-Dijck
asked this question in
Q&A
Replies: 1 comment
-
I’d approach it in a similar manner. Perhaps using a library that provides a useMediaQuery hook 🪝 could help as well. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I've recently been overhauling a front-end and switched over to using PandaCss with Ark UI.
I'm currently designing a carousel component with 3 slidesPerPage and 1 slidePerMove, however when on smaller screens I'd like the slidesPerPage and spacing to scale down.
I noticed there's not really anything in the docs pointing me in a direction, so I ended up going with a useEffect that checks the screen size and went from there. But this feels a bit wonky, how would you guys / should I tackle this?
Beta Was this translation helpful? Give feedback.
All reactions