SShinUI

Copy Button

One-click clipboard copy with a checkmark confirmation. Uses the Clipboard API and resets after 1.6 seconds.

clipboardbuttonfeedback

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { CopyButton } from "@/registry/components/copy-button";

export function Example() {
  return <CopyButton />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge lucide-react

More in Libraries