honestui

Success Check

Component

About

A checkmark that draws itself with a soft burst to confirm an action finished.

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

Code

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

Usage.tsx

"use client";
import "honestui/theme.css";

import { useState } from "react";
import { SuccessCheck } from "@/components/ui/honest-success-check";

export default function SuccessCheckDemo() {
  const [play, setPlay] = useState(0);

  return (
    <div data-theme="light" className="flex w-full max-w-xs flex-col items-center gap-4 rounded-2xl border border-border bg-card px-6 pb-6 pt-8 text-center">
      <SuccessCheck playKey={play} size={60} />
      <div className="flex flex-col gap-1" role="status">
        <p className="text-base font-semibold tracking-tight text-foreground">Payment sent</p>
        <p className="text-[13px] text-muted-foreground">
          <span className="tabular-nums">$1,240.00</span> to Northwind Studio
        </p>
      </div>
      <button
        type="button"
        onClick={() => setPlay((value) => value + 1)}
        className="mt-1 h-8 rounded-lg border border-border bg-background px-3 text-[13px] font-medium text-foreground transition-colors hover:bg-muted/60"
      >
        Replay
      </button>
    </div>
  );
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    31
  • Warp

    Warp

    1
  • Morphing Dialog

    Morphing Dialog

    1
  • Scroll Velocity Text

    Scroll Velocity Text

    1
  • Spotlight

    Spotlight

    1
  • Typewriter

    Typewriter

    1
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log