jay sharma

MorphStatusButton

Buttons 3

About

A single button that morphs through idle, loading, success, and error states in place, with no layout shift. Original Evil Buttons source, published with its Apache-2.0 license.

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

Code

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

Usage.tsx

import { useState } from "react";
import Component from "@/components/ui/evilbuttons-morph-status-button";
export default function Demo(){const [done,setDone]=useState(false);return <div data-component-demo className="dark flex min-h-screen w-full flex-col items-center justify-center gap-6 bg-neutral-950 px-6 text-white"><Component onClick={async () => { await new Promise(resolve => setTimeout(resolve, 600)); setDone(true); }} /><p role="status">{done ? "Action triggered locally" : ""}</p></div>;}

Dependencies

More by jay sharma

View all
  • Live Orb

    Live Orb

    203
  • Chrome Button

    Chrome Button

    181
  • Frame Button

    Frame Button

    131
  • Highlight Button

    Highlight Button

    75
  • ASCII Fluid

    ASCII Fluid

    72
  • Motion Button

    Motion Button

    59
  • Brutal Button

    Brutal Button

    54
  • Grid Button

    Grid Button

    49

More in Buttons

View all
  • Button

    Button

    5
  • Texture Button

    Texture Button

    92
  • App Store Button

    App Store Button

    453
  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    47
  • Split Button

    Split Button

    14
  • Button

    Button

    4
  • Button Group

    Button Group

    37