-
Notifications
You must be signed in to change notification settings - Fork 9
Component Icon
MeowLynxSea edited this page Jun 18, 2026
·
6 revisions
A single SVG icon from the embedded asset source.
use yororen_ui::headless::icon::{icon, IconSource};
icon("check", IconSource::Builtin("check".into()), cx)
.size(px(16.))
.render(cx)IconSource is either:
-
IconSource::Builtin(SharedString)— one of the 20+ bundled icons (check,x,chevron-down,info,search, …). -
IconSource::Resource(SharedString)— a path into your app'sAssetSource.
| Method | Purpose |
|---|---|
size(px) |
Render size. |
color(hsla) |
Tint color. May be ignored for multi-color icons. |
.render(cx) returns AnyElement.
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.