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>
);
}
















