Side Drawer
Drawers can slide in from any direction. This example shows a right-side drawer, perfect for navigation menus or settings panels.What This Example Shows
- Right-side drawer with
direction="right" - Full-height drawer for sidebar layouts
- Fixed width with
w-80class - Auto-adaptive drag handle orientation
Code Example
Available Directions
You can slide the drawer from any edge:direction="bottom"- Default, slides from bottomdirection="top"- Slides from topdirection="left"- Slides from leftdirection="right"- Slides from right (shown above)
Drag Handle Behavior
TheDrawerHandle component automatically adapts to the drawer direction:
- Bottom/Top drawers: Horizontal handle (12px wide × 1.5px tall)
- Left/Right drawers: Vertical handle (1.5px wide × 12px tall)
Common Use Cases
- Navigation menus: Use
direction="left"ordirection="right" - Settings panels: Side drawers work well for configuration options
- Filter panels: Shopping or data filtering interfaces
- User profiles: Quick access to user information