useClipboard

Copies text to the clipboard with a short-lived copied flag and an optional toast. Falls back to a hidden textarea where navigator.clipboard is missing (plain http, some WebViews).

Install: pnpm add-composable useClipboard

Copy with toast

Copy a value and automatically display a global success toast.

API