Drawer
Tailwind Drawer allows to add interactive elements, like forms or logins, to a dialog that appears on top of your page content, focusing user attention.
Basic Usage
Click the below toggle button to reveal the default drawer example.
Directions
The following examples illustrate the various opening directions of the Tailwind Drawer.
Responsive
Transform an element into a Drawer in mobile mode by using the sm:[--mv-drawer-enable:false] responsive option class. Resize the screen to test the element in mobile mode.
Drawer Title
Scrollable
Apply the mv-scrollable overflow-y-auto classes to the drawer body element to enable vertical scrolling within it using Tailwind Scrollable component.
Static Backdrop
Use the attribute data-mv-drawer-backdrop-static="true" to display a drawer with a static backdrop that prevents drawer closure on click on it.
No Backdrop
Use the attribute data-mv-drawer-backdrop="false" to display a drawer without the backdrop layer.
Toggle Drawers
Switch between multiple drawers for different actions.
Page Scroll
Apply the data-mv-drawer-disable-scroll="false" attribute to allow the page scrollbar to remain enabled.