---
title: "Morphing Dialog | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/morphing-dialog"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/morphing-dialog.tsx"
install_command: "npx motion-ui-skill add morphing-dialog"
dependencies: ["clsx","lucide-react","motion","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# Morphing Dialog

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

## Install

```bash
npx motion-ui-skill add morphing-dialog
```

## Dependencies

- `clsx`
- `lucide-react`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

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

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

## Source Files

- [components/craft/morphing-dialog.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/morphing-dialog.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
