UxCopyBtn
components/ux/CopyBtn.vue
Copy-to-clipboard button with icon, checkmark confirmation, and auto-reset after 4 seconds.
With text:
Icon only:
components/ux/CopyBtn.vue
Usage
<UxCopyBtn
textToCopy = "—"
:copy = "true"
copiedText = "copied!"
copyText = "copy"
:noText = "false"
:inline = "false"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| textToCopy | String | '' | Text to copy |
| copy | Boolean | true | Enable copy functionality |
| copiedText | String | 'copied!' | Confirmation text |
| copyText | String | 'copy' | Label text |
| noText | Boolean | false | Icon-only mode |
| inline | Boolean | false | Inline display |