Only run actions at certain breakpoint #709
craigward
started this conversation in
4. General
Replies: 1 comment 1 reply
-
You can have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lets say you have two boxes, A and B. On desktop they each take up 50% width.
On mobile I only want to display one box at a time taking up 100% width, and I have tabs above so you can select the relevant box to view.
Because I am implementing it with
x-show="tab === 'a'"
, on desktop one of the boxes is always hidden as it hasdisplay: none
attached. Is there a way to only run certain actions at certain breakpoints? or is there another way around it?Beta Was this translation helpful? Give feedback.
All reactions