-
Notifications
You must be signed in to change notification settings - Fork 9
Design Layout Rules
MeowLynxSea edited this page Jan 23, 2026
·
4 revisions
ListItem is a row content container.
Recommended default:
- Do not stretch children horizontally.
- Only opt into flexible growth when the caller explicitly wants it.
This prevents inputs/buttons/selects from unexpectedly expanding to full width when placed in a row container.
use gpui::div;
use yororen_ui::component::{button, list_item, text_input};
let row = list_item()
.content(
div()
.flex()
.items_center()
.gap_2()
.child(text_input().placeholder("Name"))
.child(button().child("Save")),
);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.