Skip to content

RadioGroup ​

RadioGroup is a group of radios, one of which is chosen.

When to use ​

Use it for two to four choices, especially when they carry a description. For more choices use a Select; for a switch between views use Segmented.

Props ​

PropDefaultDescription
optionsrequired{ value, label, description? }[]
valueThe chosen value (bindable)
namerequiredThe name of the group, unique on the screen
disabledfalseNone can be chosen

Contract ​

The radios are stacked with gap 0: each one already has the height of a small button, and a description adds its lines below its own choice.

Example ​

RadioGroup

Released under the Apache-2.0 license.