React copy to clipboard button that writes a value, then swaps to a check icon and Copied label for a moment. Accepts every Button variant and size.
pnpm dlx shadcn@latest add "https://ui.minidev.pro/r/copy-button.json"