@codeeshop/vue-clipboard
Version:
Copy the text data in clipboard from element selection or pass the text data
65 lines (44 loc) • 1.64 kB
Markdown
# vue-clipboard
> 🚥 Copy the text data in clipboard from element selection or pass the text data
[](https://www.npmjs.com/package/@codeeshop/vue-clipboard)
[](https://github.com/codeeshop-oc/vue-clipboard/blob/main/LICENSE)
[](https://github.com/codeeshop-oc/vue-clipboard/blob/main/src/Clipboard.vue)
[](https://github.com/codeeshop-oc/vue-clipboard/issues?&q=is%3Aissue+is%3Aopen)
## Version Support
Vue 3 - Current Branch ( TypeScript + Vite + vitest )
[Vue 2](https://github.com/codeeshop-oc/vue-lightbox-advanced/tree/vue2)
## 🎨 Features
Find out all available features on [setting props](https://github.com/codeeshop-oc/vue-clipboard/blob/main/docs/API.md#props) and see how that works on [examples](https://codeeshop-oc.github.io/vue-clipboard/).
## 🚚 Installation
### yarn/npm
```bash
# npm
npm i @codeeshop/vue-clipboard
# yarn
yarn add @codeeshop/vue-clipboard
```
### cdn
```bash
# latest
https://unpkg.com/@codeeshop/vue-clipboard
```
<br/>
## 🚀 Quick Start
```html
<template>
<div>
<VueClipboard />
</div>
</template>
<script>
import VueClipboard from '@codeeshop/vue-clipboard'
import '@codeeshop/vue-clipboard.css'
export default {
name: 'MyComponent',
components: { VueClipboard },
}
</script>
```
<br/>
## 🔖 License
This software is licensed under the [MIT](https://github.com/codeeshop-oc/vue-clipboard/blob/main/LICENSE).