components / copy-button

copy-button.

copy-to-clipboard button with copied/error feedback states.

bunx @justin06lee/chrome@latest init
installation
bunx @justin06lee/chrome@latest add copy-button
usage
Basic
<CopyButton text="bunx @justin06lee/chrome init" />
Custom labels
<CopyButton
text="value"
labels={{ idle: "grab", copied: "got it", error: "nope" }}
/>