-
Notifications
You must be signed in to change notification settings - Fork 9
Component ToggleButton
MeowLynxSea edited this page Jan 23, 2026
·
5 revisions
A selectable button (useful for segmented controls or filters).
use gpui::ElementId;
use yororen_ui::component::toggle_button;
let view = toggle_button("Bold")
.key(("toolbar", "bold"))
.default_selected(false)
.on_toggle(|selected, _ev, _window, _cx| {
// ...
});- Use
.group("...")to create a mutually exclusive group.
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.