2.0.0 • Published 3 months ago

vue-native-color-picker v2.0.0

Weekly downloads
713
License
-
Repository
github
Last release
3 months ago

vue-native-color-picker

Lightweight color picker that uses the native HTML element input type color.

npm version Deploy to github pages


Demo

Install

npm install vue-native-color-picker

Import

Globally:

import InputColorPicker from "./vue-input-color-picker";
Vue.use(InputColorPicker);

Or locally:

<script setup>
import { ref } from "vue";
import InputColorPicker from "./components/InputColorPicker.vue";

const color = ref("#0f4c81");
const handleInput = (e) => {
  console.log("You input", e.target.value);
};

const handleChange = (e) => {
  console.log("You picked", e.target.value);
};
</script>

Use

<InputColorPicker v-model="color" />

or if you wish to handle the values externally:

<InputColorPicker v-model="color" @input="handleInput" @change="handleChange" />
2.0.0

3 months ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.2.0

4 years ago