-
Notifications
You must be signed in to change notification settings - Fork 9
Component Card
MeowLynxSea edited this page Jun 18, 2026
·
5 revisions
A visual container — title, body, optional footer.
use yororen_ui::headless::card::card;
card("settings", cx)
.interactive(true)
.render(cx)
.child(label("title", "Settings", cx).render(cx))| Method | Purpose |
|---|---|
interactive(v) |
Accept focus + click. Use for clickable cards. |
has_custom_bg(v) |
Caller has overridden the background. |
The body is added via .child(...) on the returned Stateful<Div>. Pure data — no state entity.
See also: Panel, Form, 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.