Back to Components
Components

Mobile Drawer

Off-canvas navigation drawer with overlay and swipe-to-close support.

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/mobile-drawer.tsx

Installation

Using shadcn CLI

npx shadcn add mobile-drawer --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge