useCopyToClipboard

Copy text to the clipboard with feedback state and toast notifications.

Features

  • Automatic clipboard copying with feedback
  • Configurable timeout for reset state
  • Toast notifications for success/error states
  • Error handling with optional persistence
  • Cleanup on unmount