About
Responsive modal dialog with an expand/collapse toggle that smoothly animates between a compact and an enlarged size, with a scrollable body.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Expandable Dialog to your project and fits it to your theme.
Code
How Expandable Dialog is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ExpandableDialog } from "@/components/ui/expandable-dialog";
export default function ExpandableDialogDemo() {
return (
<div className="flex min-h-[400px] w-full items-center justify-center p-6">
<ExpandableDialog />
</div>
);
}







