A copy-to-clipboard button that animates between idle, copied, and error states with an SVG check draw, crossfading labels, and a clipboard fallback and reduced-motion support.
"use client"; import { CopyButton } from "@/components/ui/copy-button"; export default function CopyButtonDemo() { return ( <div className="flex justify-center"> <CopyButton value="npx interior add copy-button" /> </div> ); }
Part of interior.dev — browse the full library on 21st.dev.