Build a copy to clipboard button.
Component
<div x-data="{ copied: false }">
<input type="text" wire:model="text" id="copyInput">
<button
@click="
navigator.clipboard.writeText($wire.text);
copied = true;
setTimeout(() => copied = false, 2000);
">
<span x-show="!copied">Copy</span>
<span x-show="copied">Copied!</span>
</button>
</div>