ham7a311

Dissolve Button

Buttons 1

About

An async action button that visually dissolves into drifting canvas particles while its handler runs, then reassembles into a success state.

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

Code

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

Usage.tsx

"use client";

import { DissolveButton } from "@/components/ui/dissolve-button";

export default function DissolveButtonDemo() {
  return (
    <div className="flex min-h-[320px] w-full flex-wrap items-center justify-center gap-5 p-10 bg-background text-foreground">
      <DissolveButton
        onAction={() => new Promise((r) => setTimeout(r, 900))}
        done="Published"
      >
        Publish the guide
      </DissolveButton>
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    198
  • Route Globe

    Route Globe

    161
  • Glass Tiles

    Glass Tiles

    151
  • Orbit Ring Stats

    Orbit Ring Stats

    62
  • Glyph Swell

    Glyph Swell

    60
  • Ask Bar

    Ask Bar

    51
  • Fan Deck Card

    Fan Deck Card

    42
  • Intent Label

    Intent Label

    41

More in Buttons

View all
  • Hero Button

    Hero Button

    21
  • Button

    Button

    141
  • Eclipse Button

    Eclipse Button

    9
  • Button

    Button

    19
  • Texture Button

    Texture Button

    110
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    64
  • HeroUI Toggle Button

    HeroUI Toggle Button

  • Icon Label Subtext Button

    Icon Label Subtext Button

    65