-
Notifications
You must be signed in to change notification settings - Fork 9
Component SplitButton
MeowLynxSea edited this page Jan 23, 2026
·
4 revisions
A primary action + dropdown options.
use gpui::ElementId;
use yororen_ui::component::{split_button, SplitButtonAction};
let view = split_button()
.key(("actions", "export"))
.label("Export")
.option("png", "Export PNG")
.option("pdf", "Export PDF")
.on_primary(|_ev, _window, _cx| {
// ...
})
.on_action(|action, _ev, _window, _cx| {
match action {
SplitButtonAction::Primary => {}
SplitButtonAction::Option(id) => {
// ...
}
}
});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.