Skip to content

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

NameTypeDefaultDescription
textstringundefinedOptional text to display instead of icon.
valuestring '' The value to copy to clipboard.
visiblebooleanfalseSets the copy icon or text to always be visible. By default, icon/text only appears when hovering over slot content.

Slots

NameDescription
defaultAnything you want to render. This is not what will be copied to the clipboard.

Events

None