← Components / Selection

Radio button

Use for two to five mutually exclusive options that should all be visible.

SwiftUIReact Native · Coming soonFlutter · Coming soon

Usage

SwiftUI
M3ERadioButton(selected: plan == .pro) { plan = .pro }

API

PropertySwiftUIDescription
selectedselected: BoolState; you own the group logic.

Guidelines

  • For more than five options, use a menu or a list.