-
Notifications
You must be signed in to change notification settings - Fork 9
Component Image
MeowLynxSea edited this page Jun 18, 2026
·
5 revisions
An image element with optional alt text.
use yororen_ui::headless::image::image;
use yororen_ui::renderer::ImageSource;
image("cover", ImageSource::Asset("covers/1.jpg".into()), cx)
.alt("Cover")
.render(cx)| Method | Purpose |
|---|---|
alt(text) |
Alt text, surfaced as aria-label. |
.render(cx) returns Stateful<Div>. The exact ImageSource variants depend on your renderer.
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.