nuxt-clipboard2

A "copy to clipboard" module for Nuxt.js using vue-clipboard2
101,299 21
Install
npm install nuxt-clipboard2
Latest Version:0.2.1
License:MIT
Last Updated:May 21, 2021
Links: GitHub  ·  npm
Maintainer: webcore-it

nuxt-clipboard2

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

Setup

  • Add nuxt-clipboard2 dependency using yarn or npm to your project
  • Add nuxt-clipboard2 to modules section of nuxt.config.js
{
  modules: [
   'nuxt-clipboard2',
  ]
}

Usage

You can use $copyText in almost any context using app.$copyText or this.$copyText (Including store actions).

See vue-clipboard2 official docs for more usage information.

export default {
  methods: {
    async copySomething(text) {
      try {
        await this.$copyText(text);
      } catch (e) {
        console.error(e);
      }
    },
  },
};

License

MIT License

Copyright (c) webcore-it

Related Packages

nuxt-clipboard

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

60,155 14
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511

Version History

Version Released License
0.2.1 MIT
0.2.0 MIT
0.1.1 MIT
0.0.1 MIT