Radio
A group of radio buttons.
Forms
Added in v0.76.3
Updated
Default
{ui field, name: 'plan', label: 'Plan', group: true}
{ui radio,
name: 'plan',
options: ['free' => 'Free', 'team' => 'Team', 'business' => 'Business'],
value: 'team',
/}
{/ui}
options lists the choices as key and title pairs, and value is the key of the chosen one. Each radio gets the id {id}-{key}, where the id is the name unless you pass one. Put the group in a field with group: true, so its label is a legend over the whole set.