thaw/demo_markdown/docs/combobox/mod.md
2024-06-27 17:31:52 +08:00

869 B

Combobox

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

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

Clearable

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

view! {
    <Combobox value multiselect=true clearable=true>
        <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>
}