thaw/demo_markdown/docs/combobox/mod.md
2024-07-01 16:32:28 +08:00

38 lines
761 B
Markdown

# Combobox
```rust demo
let selected_options = RwSignal::new(vec![]);
view! {
<Combobox selected_options>
<ComboboxOption value="cat" text="Car" />
<ComboboxOption value="dog" text="Dog" />
</Combobox>
}
```
### Clearable
```rust demo
let selected_options = RwSignal::new(vec![]);
view! {
<Combobox selected_options multiselect=true clearable=true>
<ComboboxOption value="cat" text="Car" />
<ComboboxOption value="dog" text="Dog" />
</Combobox>
}
```
### Multiselect
```rust demo
let selected_options = RwSignal::new(vec![]);
view! {
<Combobox selected_options multiselect=true>
<ComboboxOption value="cat" text="Car" />
<ComboboxOption value="dog" text="Dog" />
</Combobox>
}
```