-
Notifications
You must be signed in to change notification settings - Fork 9
Component Text
MeowLynxSea edited this page Jun 13, 2026
·
4 revisions
A body text run. The simplest typographic component.
use yororen_ui::headless::text::text;use yororen_ui::headless::text::text;
text("body", "Hello, world.", cx)
.size(px(14.0))
.render(cx)| Method | Purpose |
|---|---|
size(px) |
Render size in pixels. |
The factory takes (id, text, _cx). The text content is set at construction.
-
textis also the name of the function and its second argument. The module path isyororen_ui::headless::text::text(factory) andyororen_ui::headless::text::TextProps(struct). - No state entity.
-
.render(cx)returnsStateful<Div>.
Label, Heading, EmptyState
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.