A color input component for Vuetify.
npm i vuetify-color-input
import VuetifyColorInput from 'vuetify-color-input';
Use the treeshaking system.
import VuetifyColorInput from 'vuetify-color-input/a-la-carte';
<link
href="https://unpkg.com/[email protected]/dist/vuetify.min.css"
rel="stylesheet"
/>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/vuetify.min.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/vuetify-color-input"></script>
The component is globally available as VuetifyColorInput
. If Vue is detected, the component is registered automatically.
Register the component globally.
import Vue from 'vue';
import VColorInput from 'vuetify-color-input';
Vue.component(VColorInput.name, VColorInput);
or
Register the component locally.
import VColorInput from 'vuetify-color-input';
export default {
components: {
VColorInput,
},
// ...
};
Use the component inside a template.
<v-color-input
v-model="backgroundColor"
label="background color"
/>
name | type | default | description |
---|---|---|---|
noAlpha |
Boolean |
false |
Removes alpha. |
Inherits from v-input:
appendIcon
disabled
error
errorCount
errorMessages
hideDetails
hint
id
label
messages
persistentHint
prependIcon
rules
success
successMessages
validateOnBlur
Inherits from v-color-picker:
value
Inherits from v-input:
append
label
message
prepend
Inherits from v-input:
click:append
click:prepend
update:error
Inherits from v-color-picker:
input
Author: SeregPie
Demo: https://seregpie.github.io/VuetifyColorInput/
Source Code: https://github.com/SeregPie/VuetifyColorInput
☞ Vue js Tutorial Zero to Hero || Brief Overview about Vue.js || Learn VueJS 2023 || JS Framework
☞ Learn Vue.js from scratch 2018
☞ Is Vue.js 3.0 Breaking Vue? Vue 3.0 Preview!
☞ Vue.js Tutorial: Zero to Sixty