-
Notifications
You must be signed in to change notification settings - Fork 9
Component Badge
MeowLynxSea edited this page Jun 18, 2026
·
4 revisions
A small status or count chip.
use yororen_ui::headless::badge::{badge, BadgeVariant};
badge("new", "New", cx)
.variant(BadgeVariant::Accent)
.render(cx)| Method | Purpose |
|---|---|
variant(v) |
BadgeVariant::Accent / Neutral (default). |
icon(source) |
Leading IconSource. |
has_custom_bg(v) |
Tells the renderer the caller has overridden the background. |
Text is set at construction; there is no .text(...) builder. .render(cx) returns Stateful<Div>. No state entity.
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.