Hooks & Utilities
v1.0.0Added in 1.0.0
Copy text to the clipboard with a copied flag that resets itself, and a fallback for pages without the Clipboard API.
Press Copy next to an IBAN, a tax ID or an invoice link: the icon turns into a check for the timeout and the last copied text shows below. Paste it anywhere to check. Set the timeout to 0 and the check stays until the next copy.
npx wingo-ui@latest add use-clipboardPro item: the CLI needs a Pro account. See plans
No dependencies beyond React.
timeout: 2000 ms