Patrick Xin

Morphing Dialog

Cards 132

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

    813
  • Vercel Notification Popover

    Vercel Notification Popover

    166
  • Expandable Dialog

    Expandable Dialog

    12
  • Unsplash Gallery Dialog

    Unsplash Gallery Dialog

    7
  • Autocomplete

    Autocomplete

    3
  • Team Management Dialog

    Team Management Dialog

  • Collapsible File Tree

    Collapsible File Tree

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198