1.0.6 • Published 6 years ago

vm-checkbox v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vm-checkbox

Simple material checkbox for vue

Install

npm install vm-checkbox

Setup

import { Checkbox } from 'vm-checkbox';

Vue.component('checkbox', Checkbox);

Usage

<checkbox
    v-model="checked"
    :name="name"
    :value="checked"
    :checked="false"
    :required="false"
    :disabled="false"
    :labelRight="'Hello world'"
    :color="'indigo'"
    :inputClass="['class', 'test2']"
    :labelClass="{ 'test3' : true }">
</checkbox>

Params

ParameterTypeDefault
namestringnull
valuestring or booleannull
checkedbooleanfalse
requiredbooleanfalse
disabledbooleanfalse
colorstringblack
labelRightstringundefined
labelLeftstringundefined
inputClassstring, array, objectundefined
labelClassstring, array, objectundefined

Colors

ColorValue
red#F44336
pink#E91E63
purple#673AB7
deep-purple#673AB7
indigo#3F51B5
blue#2196F3
light-blue#03A9F4
cyan#00BCD4
teal#009688
green#4CAF50
light-green#8BC34A
lime#CDDC39
yellow#FFEB3B
amber#FFC107
orange#FF9800
deep-orange#FF5722
brown#795548
grey#9E9E9E
blue-grey#607D8B
black#000

Slots

<checkbox>
  <div>content</div>
</checkbox>

License

MIT © Jarosław Krupiński

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago