-
Notifications
You must be signed in to change notification settings - Fork 9
Component Divider
MeowLynxSea edited this page Jan 24, 2026
·
5 revisions
A horizontal or vertical divider line.
Divider is a visual separator that spans the available space.
- Separating groups in lists or forms
- Splitting panes/sections visually
use yororen_ui::component::divider;
let horizontal = divider();
let vertical = divider().vertical(true);-
divider(): constructor -
vertical(bool): switch between horizontal (default) and vertical
- Horizontal divider uses
h(px(1.))+w_full(). - Vertical divider uses
w(px(1.))+h_full().
- Color:
theme.border.divider
use gpui::div;
use yororen_ui::component::{button, divider};
let toolbar = div()
.flex()
.items_center()
.child(button().child("Left"))
.child(divider().vertical(true))
.child(button().child("Right"));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.