Skip to main content

Select

Function Select 

Source
pub fn Select(props: SelectProps) -> Element
Expand description

Select component for choosing from a dropdown list

§Example

rsx! {
    Select {
        model_value: Some("1".to_string()),
        options: vec![
            SelectOption::new("1", "Option 1"),
            SelectOption::new("2", "Option 2"),
        ],
        on_change: move |v| println!("Selected: {}", v),
    }
}