Checkboxes
To use the custom checkbox controls you need to import the custom made component:
import {Checkbox} from 'src/components'
Global usage
Vue.component(Checkobx.name, Checkbox)
For local usage
export default {
components: {
[Checkbox.name]: Checkbox
}
}
Custom checkboxes
Changing colors
To change default radio color, go to _checkboxes-radios.css
and change line 160
@include radio-colors($default-color);
@include checkbox-colors($default-color);
If you want to have multiple checkbox colors, we recommend extending these 2 mixins
with extra css classes (e.g .form-check.form-check-success
) and add the corresponding classes
to Checkbox.vue
component.
Checkbox Props
Checkbox Events
Event Name | Description | Parameters |
---|---|---|
input | triggers when the binding value changes | the updated value |
Slots
Name | Description |
---|---|
default | Default content for checkbox |