1.0.4 • Published 5 years ago

vue-randomcolor v1.0.4

Weekly downloads
154
License
MIT
Repository
github
Last release
5 years ago

vue-randomcolor npm version

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:

import Vue from 'vue'
import VueRandomColor from 'vue-randomcolor'

Vue.use(VueRandomColor)

vue-randomcolor will take care of importing randomcolor automatically.

Usage

After installation, randomcolor is bound to this in every single file component:

this.$randomColor();
// outputs e.g. #ffda63

Of course, all randomcolor options can be used with the function:

this.$randomColor({ luminosity: 'light', hue: 'red' })
// outputs e.g. #f293ac
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago