-
Notifications
You must be signed in to change notification settings - Fork 9
Component Text
MeowLynxSea edited this page Jan 24, 2026
·
4 revisions
A simple text element that can optionally include an icon.
This is a convenience for “icon + label” inline content.
use gpui::px;
use yororen_ui::component::{icon, text, IconName};
let view = text("Info").with_icon(icon(IconName::Info).size(px(14.)));- Inline icon + text rows
- Small labels where a leading icon helps recognition
-
text("..."): constructor -
id(...): stable identity -
with_icon(icon): leading icon
- Layout: row (
flex) with a small gap between icon and text
- Use
Labelwhen you need tone/ellipsis/line clamping.Textis primarily for "icon + text".
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.