Tailwind CSS Drawer Components

The Drawer is a navigation component that slides in from the side of the screen. It is commonly used for mobile menus or secondary navigation. It consists of a toggle button and a content area. You can control its behavior, such as whether it stays open or overlays the main page content easily.

Basic Usage

html

Drawer Customization

The .drawer-backdrop provides a clickable background that closes the drawer when clicked outside the drawer, by removing this element by default prevent drawer not close when click outside.

Close on Backdrop Click

html

Prevent Close on Click Outside

html

Drawer Placements

Left Drawer (Start)

html

Right Drawer (End)

html

Top Drawer

html
Contact us

Bottom Drawer

html