johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
let { text }: { text: string } = $props();
let copied = $state(false);
async function copy() {
await navigator.clipboard.writeText(text);
copied = true;
setTimeout(() => (copied = false), 1500);
}
</script>
<button class="btn" type="button" onclick={copy}>{copied ? 'Copied' : 'Copy'}</button>