Use Copy To Clipboard
shadcn-io/use-copy-to-clipboardPaidHook
React useCopyToClipboard hook with async copy function and copied state. Uses Clipboard API, auto-resets after 2s.
Live preview
live · rendered by the registry
Rendered by shadcn-io on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://shadcn.io/r/use-copy-to-clipboard.jsonWhat it pulls in
npm packages
Files it writes
More from shadcn-io
All 7,794 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Use Booleanuse-boolean | shadcn-io | Hooks | Paid | no deps | |
| Use Click Anywhereuse-click-anywhere | shadcn-io | Hooks | Paid | no deps | |
| Use Countdownuse-countdown | shadcn-io | Hooks | Paid | no deps | |
| Use Counteruse-counter | shadcn-io | Hooks | Paid | no deps | |
| Use Dark Modeuse-dark-mode | shadcn-io | Hooks | Paid | 1 dep | |
| Use Debounce Callbackuse-debounce-callback | shadcn-io | Hooks | Paid | 2 deps | |
| Use Debounce Valueuse-debounce-value | shadcn-io | Hooks | Paid | 1 dep | |
| Use Document Titleuse-document-title | shadcn-io | Hooks | Paid | 1 dep |
