v0.20.233 - 8.7 / 5.7

use:clipboard

Copies text to the clipboard on click. The prop value decides what gets copied:

  • function — invoked with the click event; its return value is copied
  • string — that literal string is copied (can also be a signal for a dynamic value)
  • true — the element's own innerText is copied

# Snippet