Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-color-picker-wheel
Advanced tools
Readme
A Vue color picker component based on the Farbtastic jQuery Color Picker plug-in.
npm install --save vue-color-picker-wheel
ES6 modules
<template>
<div id="app">
<color-picker v-model="color"></color-picker>
<p>
Color:
<input v-model="color" type="text">
</p>
</div>
</template>
<script>
import ColorPicker from 'vue-color-picker-wheel';
export default {
name: 'App',
components: {
ColorPicker
},
created() {
},
data() {
return {
color: '#ffffff'
};
},
};
</script>
CommonJS
const ColorPicker = require('vue-color-picker-wheel');
In a script tag, this loads the component using the global Vue instance.
<script src="https://unpkg.com/vue-color-picker-wheel"></script>
Property | Description | Type | Default | Example |
---|---|---|---|---|
width | The width of the color picker | Number | 300 | :width="400" |
height | The height of the color picker | Number | 300 | :height="400" |
disabled | Whether or not the color picker should be disabled | Boolean | false | :disabled="false" |
v-model | v-model to create two-way data binding for color | String (hex color code) | none | v-model="color" |
startColor | The color that is selected when opening the colorpicker | String (hex color code) | none | startColor="#ffffff" |
Event | Description | Event parameters |
---|---|---|
color-change | Is fired after the selected color has changed | color: String (hex color code) |
Checkout GitHub issues for any issues we need some help with.
# Serve with hot reload (default at localhost:8080)
vue serve --open src/color-picker.vue
# Build all variants
npm run build
FAQs
A Vue color picker component based on the Farbtastic jQuery Color Picker plug-in
The npm package vue-color-picker-wheel receives a total of 508 weekly downloads. As such, vue-color-picker-wheel popularity was classified as not popular.
We found that vue-color-picker-wheel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.