Morphing Dialog

Morphing Dialog: An expandable card trigger that fluidly morphs into a centered dialog without jarring popup animations. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Morphing Dialog

npx motion-ui-skill add morphing-dialog

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

Morphing Dialog

An expandable card trigger that fluidly morphs into a centered dialog without jarring popup animations.

Install

npx motion-ui-skill add morphing-dialog

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

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

export function Example() {
  return (
    <div className="p-6">
      <MorphingDialog />
    </div>
  );
}

Browse this category