-
Notifications
You must be signed in to change notification settings - Fork 9
Component ComboBox
MeowLynxSea edited this page Jan 23, 2026
·
6 revisions
A searchable dropdown.
Use this when you have a large list of options and want inline filtering.
use gpui::ElementId;
use yororen_ui::component::{combo_box, ComboBoxOption};
let view = combo_box()
.key(ElementId::from(("settings", "channel")))
.placeholder("Select a channel…")
.options([
ComboBoxOption::new("stable", "Stable"),
ComboBoxOption::new("beta", "Beta"),
ComboBoxOption::new("nightly", "Nightly"),
])
.on_change(|value, _window, _cx| {
// value: SharedString
});Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.