ham7a311

Copy Check

Cards

About

A copy-to-clipboard button whose icon folds into a checkmark and label rolls from "Copy" to "Copied" before resetting.

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

Code

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

Usage.tsx

"use client";

import CopyCheck from "@/components/ui/copy-check";

export default function Demo() {
  return (
    <div className="flex min-h-full w-full items-center justify-center p-8 bg-[#f3f1ec] text-[#1b1a17]">
      <div className="flex w-full max-w-sm flex-col gap-5 rounded-[20px] p-6 bg-white shadow-[0_20px_40px_-24px_rgb(0_0_0/0.35)]">
        <p className="font-mono text-[11px] uppercase tracking-[0.14em] opacity-50">
          API key · test mode
        </p>
        <div className="flex items-center justify-between gap-3 rounded-[12px] px-3 py-2 font-mono text-[13px] bg-black/[0.04]">
          <span className="truncate">vt_test_5f8a2c19e0b7</span>
          <CopyCheck text="vt_test_5f8a2c19e0b7" />
        </div>
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    17
  • Wave Mesh

    Wave Mesh

    11
  • Glass Tiles

    Glass Tiles

    8
  • Wind Map

    Wind Map

    7
  • Glass Carousel

    Glass Carousel

    7
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Time Window

    Time Window

    5

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Stats cards with links

    Stats cards with links

    79
  • Statistics Card 2

    Statistics Card 2

    259
  • Card

    Card

    56
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3
  • Statistics Card 7

    Statistics Card 7

    289
  • Weather Card

    Weather Card

    54