Replies: 1 comment
-
Yes, you could use a resize observer. Or you could check in a useLayoutEffect if you don't need it to update or have state which tells you to update it. You could also use https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/change_event if you know the breakpoint. |
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
-
Hello! The Radio Group has an
orientation
prop taking inhorizontal
orvertical
. I assume this is to help with keyboard navigation. However, what if I want ithorizontal
for my full-width layout butvertical
on mobile? Do I need to do some sort of resize observer to change the value of theorientation
prop?Beta Was this translation helpful? Give feedback.
All reactions