Skip to content

Radio Control

Single choice radio button group displayed as buttons.

OptionTypeDefaultDescription
labelstring-Field label
controlstringradioControl type
optionsarray-Array of {label, value} pairs
defaultstring-Default value
{
"attributes": {
"iconStyle": {
"type": "string",
"default": "outline",
"wbs": {
"label": "Icon Style",
"control": "radio",
"options": [
{ "label": "Outline", "value": "outline" },
{ "label": "Filled", "value": "filled" },
{ "label": "Duotone", "value": "duotone" }
]
}
}
}
}
<i class="icon icon-{{ attributes.iconStyle }}"></i>

Both let users choose one option. Radio shows all options visible at once (better for 3-5 options), while Select is a dropdown (better for 6+ options).