Copy text to the clipboard with a copied flag that resets after a delay, an error state and a fallback for pages where the Clipboard API is blocked.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-clipboard.json"