Sidenav width #2165
Unanswered
sylcha
asked this question in
Support from community
Sidenav width
#2165
Replies: 1 comment 2 replies
-
Hello! Did you try using the
Checkout other options here: https://tw-elements.com/docs/standard/navigation/sidenav/#api-section-options |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody,
I'm using Svelte + TailwindCSS in some project and I would like to use Tailwind Elements because I'm not a pro in CSS and it seems easy to use.
I would like to use the Sidenav navigation component. My code works as expected (toggle button open/close the sidenav component and the remaining of the page is adapting in width) except for the Sidenav component width. It's like I cannot choose the width. I tried to use
w-96
instead ofw-60
for the sidenav but it's not working.What I've done
Here is the code for my toggle button :
And here is the code for the sidenav component where I tried to use
w-96
:The page content is in this div where I tried to adapt left padding
!pl-96
accordingly :You may have a full look at the project here.
Question
How can I choose the sidenav width ?
Edit
I tried your basic exemple with
w-96
instead ofw-60
in a simple page and the issue is the same.Beta Was this translation helpful? Give feedback.
All reactions