mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 14:29:22 -05:00
38 lines
761 B
Markdown
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>
|
|
}
|
|
```
|