thaw/demo_markdown/docs/combobox/mod.md
2024-06-27 14:51:36 +08:00

563 B

Combobox

let value = RwSignal::new(vec![]);

view! {
    <Combobox value>
        <ComboboxOption key="cat">
            "Cat"
        </ComboboxOption>
        <ComboboxOption key="dog">
            "Dog"
        </ComboboxOption>
    </Combobox>
}

Multiselect

let value = RwSignal::new(vec![]);

view! {
    <Combobox value multiselect=true>
        <ComboboxOption key="cat">
            "Cat"
        </ComboboxOption>
        <ComboboxOption key="dog">
            "Dog"
        </ComboboxOption>
    </Combobox>
}