Radio
Select an option from a set
Examples
Base
Selection: Jack
Show code
Variants
Selection: default
Show code
Sizes
Selection: small
Show code
Class props
Class prop | Description | Props | Suffixes | |
---|---|---|---|---|
checkCheckedClass | Class of the native radio element when checked. | |||
checkClass | Class of the native radio element. | |||
checkedClass | Class of the root element when checked. | |||
disabledClass | Class when radio is disabled. | disabled | ||
labelClass | Class of the radio label. | |||
rootClass | Class of the root element. | |||
sizeClass | Class of the radio size. | size | small | |
variantClass | Class of the radio variant. | variant | primary |
Radio component
html
<o-radio></o-radio>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
ariaLabelledby | Accessibility label to establish relationship between the checkbox and control label | string | - | |
disabled | Same as native disabled | boolean | - | |
label | Input label, unnecessary when default slot is used | string | - | undefined |
name | Same as native name | string | - | |
nativeValue | Same as native value | string|number|boolean|array | - | |
override | boolean | - | ||
required | boolean | - | ||
size | Size of the control, optional | string | small , medium , large | |
v-model | string|number|boolean|array | - | ||
variant | Color of the control, optional | string | primary , info , success , warning , danger , and any other custom color |
Events
Event name | Properties | Description |
---|---|---|
update:modelValue | ||
input |
Slots
Name | Description | Bindings |
---|---|---|
default |
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.