-
Notifications
You must be signed in to change notification settings - Fork 9
Component Spacer
MeowLynxSea edited this page Jun 18, 2026
·
4 revisions
A flexible empty box that grows to fill available space inside a flex container.
div()
.flex().items_center()
.child(button("cancel", cx).caption("Cancel").render(cx))
.child(spacer("fill", cx).render(cx))
.child(button("ok", cx).caption("OK").render(cx))No builder methods — the factory takes only (id, _cx). .render(cx) returns Stateful<Div>.
See also: Divider.
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.