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.
npx shadcn@latest add @minidev/copy-button
copy-button