How do you undo a "hidden" class? #3843
-
At the moment, you can hide things using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey! You want to use any of the other display utilities for this, like:
You don't need |
Beta Was this translation helpful? Give feedback.
-
I added a custom |
Beta Was this translation helpful? Give feedback.
-
Use the classic For example, if we want the default display to be
|
Beta Was this translation helpful? Give feedback.
Hey! You want to use any of the other display utilities for this, like:
class="block sm:hidden"
hidden
just setsdisplay: none
, so anything class that changes display to something else will unhide it.You don't need
sm:hidden md:hidden
btw unless you've edited your breakpoints to not be min-width based in your config —sm:hidden
is enough, the element will stay hidden on all larger screens until you explicitly unhide with something likelg:block
👍