Modal

Displays a modal component with customizable sizes, animations, and content.

A simple nirmaan modal component

Installation

npx shadcn@latest add https://nirmaan-ui.vercel.app/r/nirmaan-modal.json

Usages

import { Modal } from "@/components/ui/nirmaan-ui/modal";
<Modal
  isOpen={true}
  onClose={() => alert("Modal closed")}
  title="Example Modal"
  description="This is an example modal component."
  footer={<button className="btn btn-primary">Confirm</button>}
>
  <p>This is the content inside the modal.</p>
</Modal>