-
Notifications
You must be signed in to change notification settings - Fork 9
Component Spacer
MeowLynxSea edited this page Jan 24, 2026
·
4 revisions
A flexible spacer that grows to fill remaining space.
This is equivalent to a div().flex_grow() convenience.
use gpui::div;
use yororen_ui::component::{button, spacer};
let view = div()
.flex()
.items_center()
.child(button().child("Left"))
.child(spacer())
.child(button().child("Right"));- Toolbars: push items to the right
- “Left / center / right” layouts
-
spacer(): constructor
- Sets
flex_grow()
- Use inside
flex()containers; it setsflex_grow().
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.