Toggling the width of an element #1221
Unanswered
eduardonwa
asked this question in
1. Help
Replies: 1 comment 3 replies
-
Not sure I understand but maybe you want to just bind classes? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How could I possibly target the width of an element? I want to be able to toggle between 2 Tailwind classes, from
w-24
tow-82
or a width that is fitting, what property can set me up for this? I've noticed just toggling the objects alpine doesn't get the result I want since im working on a sidebar and when I expand the content, I don't want to hide the icons that this sidebar has, im looking to:Im using an unorganized list, the text for each icon is inside a
<span>
. Here's some code where im able to hide all the elements inside this sidebar, like I said I just wish to hide/show the strings besides and also contract and expand the width :-)This is an example of how the
<ul>
is organized, in reality I have 5 ```Beta Was this translation helpful? Give feedback.
All reactions