@hz-libs/bpe-ui-copy-to-clipboard
v0.1.3
Published
Copy-to-clipboard primitive.
Readme
@hz-libs/bpe-ui-copy-to-clipboard
Copy-to-clipboard primitive for Vue 3.
Install
pnpm add @hz-libs/bpe-ui-copy-to-clipboardThe app must already depend on Vue ^3.5.0. This package depends on @hz-libs/bpe-ui-popover. Component CSS is included in the JavaScript import.
Use
The button writes text to the clipboard and shows a check mark briefly. show-tooltip displays the copied text when the pointer is over the button.
<script setup>
import { CopyToClipboard } from '@hz-libs/bpe-ui-copy-to-clipboard'
</script>
<template>
<CopyToClipboard text="bpe-frontend-libs" show-tooltip />
</template>Exports
CopyToClipboard.
