# AtlasRadioButton

> A round radio button with a label; buttons with the same parent form a group and the arrow keys move the choice.

A round radio button with a label. Radio buttons with the same parent form a group: checking one unchecks the others. For a choice between a few views, see [AtlasSegmentedControl](https://atlasos.eterneon.net/framework/atlas-ui/atlas-segmented-control.md).

AtlasRadioButton is a Qt Quick Controls [`RadioButton`](https://doc.qt.io/qt-6/qml-qtquick-templates-radiobutton.html); `text`, `checked` and the rest work as usual.

## Example

```qml
Column {
    AtlasRadioButton { text: qsTr("Light"); checked: true }
    AtlasRadioButton { text: qsTr("Dark") }
}
```

## Keyboard

Tab visits one radio button of a group: the checked one, or the first if none is. The arrow keys move the choice to the next or previous button of the group, wrapping round (Left and Right swap in right-to-left layouts).
