Back to Components
Components

Drawer

Slide-out panel from any edge with backdrop, header, and footer slots.

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/drawer.tsx

Installation

Using shadcn CLI

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

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge