Skip to main content

RadioButton

Function RadioButton 

Source
pub fn RadioButton(_: RadioButtonProps) -> Element
Expand description

One choice out of several. Which siblings it excludes is the Host’s business, so the widget carries only whether this one is the chosen one.

selected is the Compose name for that state and is what the rsx attribute is called. On the wire it is the same “is this on” boolean the other two toggles send, because a selected radio button and a switch that is on are one fact.

§Props

For details, see the props struct definition.