Back to Components
Overlays

Modal

Full-featured modal with backdrop, animations, and size variants.

PropsUsage ExampleVariations

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/modal.tsx

Installation

Using shadcn CLI

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

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Overlays Components