Copy API
API reference docs for the Stash Copy
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import Copy from '@leaflink/stash/Copy.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
text | string | undefined | Optional text to display instead of icon. |
value | string | '' | The value to copy to clipboard. |
visible | boolean | false | Sets the copy icon or text to always be visible. By default, icon/text only appears when hovering over slot content. |
Slots
Name | Description |
---|---|
default | Anything you want to render. This is not what will be copied to the clipboard. |
Events
None