Radio
Select an option from a set
Class props
Radio component
Select an option from a set
html
<o-radio></o-radio>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - | From config: radio: { |
disabled | Same as native disabled | boolean | - | false |
label | Input label, unnecessary when default slot is used | string | - | |
name | Same as native name | string | - | |
nativeValue | Same as native value | string|number|boolean | - | |
override | Override existing theme classes completely | boolean | - | |
required | Same as native required | boolean | - | false |
size | Size of the control | string | small , medium , large | From config: radio: { |
useHtml5Validation | Enable html 5 native validation | boolean | - | From config: { |
v-model | string|number|boolean | - | ||
variant | Color of the control | string | primary , info , success , warning , danger , and any other custom color | From config: radio: { |
Events
Event name | Properties | Description |
---|---|---|
update:modelValue | value string, number, boolean - updated modelValue prop | modelValue prop two-way binding |
input | value string, number, boolean - input valueevent Event - native event | on input change event |
focus | event Event - native event | on input focus event |
blur | event Event - native event | on input blur event |
invalid | event Event - native event | on input invalid event |
Slots
Name | Description | Bindings |
---|---|---|
default | Override the label, default is label prop |
Sass variables
Current theme ➜ Oruga Base
SASS Variable | Default |
---|---|
$radio-active-background-color | $primary |
$radio-checked-box-shadow-length | 0 0 0.5em |
$radio-checked-box-shadow-opacity | 0.8 |
$radio-disabled-opacity | $base-disabled-opacity |
$radio-label-padding | 0 0 0 0.5em |
$radio-margin-sibiling | 0.5em |
$radio-size | 1rem |
$radio-line-height | 1.25 |
See ➜ 📄 Full scss file
Current theme ➜ Oruga Full
SASS Variable | Default |
---|---|
$radio-active-background-color | $primary |
$radio-checked-box-shadow-length | 0 0 0.5em |
$radio-checked-box-shadow-opacity | 0.8 |
$radio-disabled-opacity | $base-disabled-opacity |
$radio-label-padding | 0 0 0 0.5em |
$radio-margin-sibiling | 0.5em |
$radio-size | 1rem |
$radio-line-height | 1.25 |
See ➜ 📄 Full scss file
Current theme ➜ Bulma
The theme does not have any custom variables for this component.
Current theme ➜ Bootstrap
The theme does not have any custom variables for this component.