Patrick Xin

Expandable Dialog

Component 7

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>
  );
}

Dependencies

More by Patrick Xin

View all
  • Onboarding Dialog

    Onboarding Dialog

    794
  • Vercel Notification Popover

    Vercel Notification Popover

    156
  • Morphing Dialog

    Morphing Dialog

    109
  • Unsplash Gallery Dialog

    Unsplash Gallery Dialog

    2
  • Autocomplete

    Autocomplete

    1
  • Team Management Dialog

    Team Management Dialog

  • Collapsible File Tree

    Collapsible File Tree