honestui

Success Check

Forms

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 SuccessCheckForm() {
  const [sent, setSent] = useState(false);
  const [canUndo, setCanUndo] = useState(false);

  return (
    <div data-theme="light" className="flex min-h-44 w-full max-w-xs flex-col justify-center rounded-xl border border-border bg-card p-5">
      {sent ? (
        <div className="flex flex-col items-center gap-3 text-center">
          <SuccessCheck size={48} onComplete={() => setCanUndo(true)} />
          <p className="text-sm font-medium text-foreground">You are on the list</p>
          <button
            type="button"
            disabled={!canUndo}
            onClick={() => {
              setSent(false);
              setCanUndo(false);
            }}
            className="cursor-pointer text-[13px] text-muted-foreground underline underline-offset-4 disabled:opacity-0"
          >
            Use a different email
          </button>
        </div>
      ) : (
        <form
          className="flex flex-col gap-3"
          onSubmit={(event) => {
            event.preventDefault();
            setSent(true);
          }}
        >
          <label className="flex flex-col gap-1.5 text-sm font-medium text-foreground">
            Work email
            <input
              type="email"
              required
              defaultValue="maya@northwind.example"
              className="h-9 rounded-lg border border-border bg-background px-3 text-sm font-normal text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring"
            />
          </label>
          <button
            type="submit"
            className="h-9 cursor-pointer rounded-lg bg-foreground text-sm font-medium text-background transition-opacity outline-none hover:opacity-90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
          >
            Join the waitlist
          </button>
        </form>
      )}
      <span className="sr-only" role="status">
        {sent ? "You are on the list" : ""}
      </span>
    </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

More in Forms

View all
  • Form

    Form

    7
  • Login 2

    Login 2

    16
  • Contact Form

    Contact Form

    33
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    95
  • Premium Auth

    Premium Auth

    614
  • Onboarding Stepper

    Onboarding Stepper

    13
  • Authentication Card

    Authentication Card

    52