Skip to content

Expose drawer partially for opening and closing button. #2982

Closed Answered by saadeghi
EladKarni asked this question in Q&A
Discussion options

You must be logged in to vote

daisyUI drawer is a grid layout with sidebar and content that can collapse the sidebar if needed.
In this screenshot, it's a different layout. Some people call it a bottom sheet and it's a common design pattern in iOS. We don't have this in daisyUI currently, but I just made a quick example for you:
https://play.tailwindcss.com/NBg7Q0zzWp

I used a checkbox to open/close (CSS-only) but you can also use JS and apply class names conditionally to open or close it.

Let me know if you have a question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants