---
title: "Morph Status Button | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/morph-status-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/morph-status-button.tsx"
install_command: "npx motion-ui-skill add morph-status-button"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Morph Status Button

> Button that morphs through idle, loading, success, and error states seamlessly in place with zero layout shift.

## Install

```bash
npx motion-ui-skill add morph-status-button
```

## Dependencies

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

## Usage

```tsx
"use client";

import { MorphStatusButton } from "@/components/buttons/morph-status-button";

export function MorphStatusButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <MorphStatusButton>Click Me</MorphStatusButton>
    </div>
  );
}
```

## API Reference

### MorphStatusButton

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `status` | `"idle" | "loading" | "success" | "error"` | "idle" | No | Current interactive state |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

- [components/buttons/morph-status-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/morph-status-button.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
