Radio buttons
To use the custom radio buttons you need to import the custom made component:
import {Radio} from 'src/components'
Global usage
Vue.component(Radio.name, Radio)
For local usage
export default {
components: {
[Radio.name]: Radio
}
}
Custom radio buttons
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 Radio.vue
component.
Radio Props
Radio Events
Event Name | Description | Parameters |
---|---|---|
input | triggers when the binding value changes | the updated value |