@scalar/use-clipboard

tiny wrapper around the clipboard API
37,211 16,304
Install
npm install @scalar/use-clipboard
Latest Version:0.5.13
Older releases:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: cameronrohani

Scalar useClipboard()

Version Downloads License Discord

Installation

npm install @scalar/use-clipboard

Usage

import { useClipboard } from '@scalar/use-clipboard'

const { copyToClipboard } = useClipboard()

copyToClipboard(
  'The average distance between the Earth and the Moon is 384 400 km (238 855 miles).',
)

Related Packages

vue3-copy

This is fork from egoist/v-copy and now support Vue 3.

1,158 1
v-clipboard

Vue.js Clipboard Plugin

1,101,981 515
@meforma/vue-copy-to-clipboard

Vue.js 3 plugin to copy text to clipboard

16,239 12
@mooth/copy

copy text to clipboard from native select element

0
nuxt-clipboard

A "copy to clipboard" module for Nuxt.js using vue-clipboard2

60,155 14

Version History

Version Released License
0.5.13 MIT
0.5.12 MIT
0.5.11 MIT
0.5.10 MIT
0.5.9 MIT