A button that copies a string to the clipboard and swaps to a check icon for two seconds.
npx shadcn@latest add @shadcnblocks/copy-button
copy-button