Sigil

Radio group

A set of radio options; .label() and .labelled_by() name the group.

GUITUIRuns in the browserradio_group

Preview

Radio group, Default, light themeRadio group, Default, dark theme

Usage example

fn radio_group_demo() -> RadioGroupBuilder {    radio_group(signal(String::from("auto")))        .option("auto", "Automatic")        .option("manual", "Manual")}
fn radio_group_demo()-> RadioGroupBuilder {  radio_group(signal(String::from(    "auto",  )))  .option("auto", "Automatic")  .option("manual", "Manual")}

States

All 5 captured states, each drawn by the window host and by the terminal host.

  • Radio group, Default, light themeRadio group, Default, dark theme
    Default
  • Radio group, Hover, light themeRadio group, Hover, dark theme
    Hover
  • Radio group, Pressed, light themeRadio group, Pressed, dark theme
    Pressed
  • Radio group, Focused, light themeRadio group, Focused, dark theme
    Focused
  • Radio group, Disabled, light themeRadio group, Disabled, dark theme
    Disabled

API

NameSignaturePurpose
radio_groupfn radio_group(selected: Signal<String>) -> RadioGroupBuilderA set of radio options; .label() and .labelled_by() name the group.