-
Notifications
You must be signed in to change notification settings - Fork 9
Component Label
MeowLynxSea edited this page Jun 13, 2026
·
6 revisions
A styled text label. Supports muted / strong / mono variants, ellipsis truncation, and optional line-wrapping.
use yororen_ui::headless::label::label;use yororen_ui::headless::label::label;
label("email-label", "Email", cx)
.strong(true)
.render(cx)| Method | Purpose |
|---|---|
muted(v) |
Render in a muted color. |
strong(v) |
Render in a bold weight. |
mono(v) |
Use the monospaced font. |
ellipsis(v) |
Truncate with … when the text overflows. |
wrap() |
Allow the label to wrap onto multiple lines. |
max_lines(n) |
Cap the number of lines when wrapping. |
inherit_color(v) |
Inherit the parent text color (skip the renderer's default label color). |
- Factory takes
(id, text, _cx). Text is required at construction. - No state entity.
-
.render(cx)returnsStateful<Div>.
Text, Heading, Badge
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.