pub fn radio_button() -> RadioButtonBuilderExpand description
§radio_button
Render a Material Design 3 radio button with a smooth animated selection dot.
§Usage
Use in single-choice groups where exactly one option should be active.
§Parameters
modifier— optional modifier chain applied to the radio button subtree.focus_requester— optional handle targeting this option for focus requests.on_select— optional callback invoked when the radio transitions to the selected state.group— selection handle received from the enclosing radio group.selected— externally controlled selection; omit on every choice to let its radio group coordinate the controllers.size— optional visual diameter of the radio glyph.touch_target_size— optional minimum interactive touch target.stroke_width— optional stroke width applied to the outer ring.dot_size— optional diameter of the inner dot when fully selected.selected_color— optional ring and dot color when selected.unselected_color— optional ring color override for all unselected states.disabled_selected_color— optional ring and dot color when disabled but selected.disabled_unselected_color— optional ring color when disabled and not selected.enabled— whether the control is interactive.accessibility_label— optional accessibility label.accessibility_description— optional accessibility description.controller— optional external controller for selection state and animation.
§Examples
use tessera_components::radio_button::radio_button;
use tessera_ui::tessera;
#[tessera]
fn radio_demo() {
radio_button().selected(true);
}