About side navigation bars and what some users expect #2657
Closed
fernandocanizo
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey, Here's an example: daisyUI can show or hide the sidebar but if you want:
You need JS for that, like the example I linked. Let me know if you have a question. |
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
-
Hello, I don't know if this qualifies as rambling, Q&A or feature request, so I decided to put it in the general category. In any case, is a help request :)
I'm trying to build a side navigation bar (
sidenav
from here onward) which:sidenav
shows or minifiesI'm after this behavior from Material UI: Persistent drawer with mini variant.
I've been reading several related discussions here, in particular #2535, and I think that if not a new DaisyUi component, at least a full example with proper explanation of the missing JS parts is needed in the docs.
I've been trying the whole morning to implement it by adding TailwindCss classes and some JS too, but without success.
Some thoughts about how currently drawer is implemented, I don't know if they are possible with only CSS, if not, a note should be added in the docs:
ESC
key press or a click outside the drawerI want to expand on the last one: drawer tags structure is
But why is the navbar, the content and the footer wrapped by the drawer? This structure generates an unnecessary coupling. I would rather have:
All separate components/things.
I see that somehow part of what I want is implemented on the DaisyUi site:
But I don't see what's the difference with my implementation:
I see there are some other classes in the DaisyUi screenshot, but those classes don't seem relevant to this issue.
Can someone point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions