@props([ 'value', 'label' => 'Copied', // announced in the toast 'title' => 'Copy', // tooltip / accessible name 'ghost' => true, // sits inside a table cell rather than on its own ]) {{-- | Copy-to-clipboard, self-contained. | | The icon swaps to a tick for a moment on success, which is the only feedback | most people need, and a `toast` event goes up to the page so the confirmation | is also announced somewhere a screen reader will read it. | | window.copyText (resources/js/clipboard.js) is used rather than | navigator.clipboard directly: the Clipboard API is unavailable on plain HTTP, | which is exactly how this panel is served in local development. --}}