vue-randomcolor
Tiny wrapper for integrating randomcolor into Vue.js. Less than 300 bytes
minified.
Installation
Install via npm:
npm install --save vue-randomcolor randomcolor
Then you can install it as a Vue plugin:
Vue
vue-randomcolor will take care of importing randomcolor automatically.
Usage
After installation, randomcolor is bound to this
in every single file component:
this;// outputs e.g. #ffda63
Of course, all randomcolor options can be used with the function:
this// outputs e.g. #f293ac