pub fn RadioButton(_: RadioButtonProps) -> ElementExpand 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.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolselected:boolenabled:boolon_change:EventHandler<bool>