eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsActions & inputs
RadioGroup
View source
1 min read
Two to five mutually exclusive options, all visible at once, addressed by index.
1
using eQuantic.UI.Components;
STATES
selected
unselected
disabled
Usage
1
2
3
4
5
new RadioGroup(["Free", "Pro", "Team"], selected: _plan,
onChanged: i => SetState(() => _plan = i))
{
Label = "Billing plan",
}
API
Prop
Type
Default
Description
Options
IReadOnlyList<string>
Option labels, rendered in order.
Selected
int
0
Index of the selected option.
OnChanged
Action<int>?
null
Fires with the new index.
Label
string?
null
Group label, announced as the group name.
Disabled
bool
false
Disables the whole group.
States
State
Rendering
Unselected
2 dp ring
Selected
Primary ring plus Primary dot
Disabled
0.38 across the group
Accessibility
Container role radiogroup named by Label; each option announces "2 of 3".
Arrows move selection inside the group; Tab leaves it.
When to use
Two to five options where seeing all of them matters.
Avoid
More than five — use Select.
A single option — use a Checkbox.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/RadioGroup.cs.