Patrick Xin

Morphing Dialog

Cards 107

About

A card that expands into a full-screen modal with a shared-layout morphing animation, opening its image and title into an expanded detail view.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Morphing Dialog to your project and fits it to your theme.

Code

How Morphing Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { MorphingDialog } from "@/components/ui/morphing-dialog";

export default function MorphingDialogDemo() {
  return (
    <div className="flex min-h-[500px] w-full items-center justify-center py-10">
      <MorphingDialog />
    </div>
  );
}

Dependencies

More by Patrick Xin

View all
  • Onboarding Dialog

    Onboarding Dialog

    794
  • Vercel Notification Popover

    Vercel Notification Popover

    156
  • Expandable Dialog

    Expandable Dialog

    7
  • Unsplash Gallery Dialog

    Unsplash Gallery Dialog

    2
  • Autocomplete

    Autocomplete

    1
  • Team Management Dialog

    Team Management Dialog

  • Collapsible File Tree

    Collapsible File Tree

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    39
  • Statistics Card 2

    Statistics Card 2

    261
  • Course Design Cards

    Course Design Cards

    1.1K
  • The Item one

    The Item one

    3
  • Card

    Card

    70
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    289
  • Card

    Card

    17