-
Notifications
You must be signed in to change notification settings - Fork 9
Component Badge
MeowLynxSea edited this page Jan 24, 2026
·
4 revisions
A small status pill.
Badge is typically used for small “state” labels like Beta, New, Experimental, etc.
use yororen_ui::component::badge;
let view = badge("Beta");- Status markers:
Beta,Preview,Deprecated - Tiny counts or labels that should stand out from surrounding text
-
badge("..."): constructor -
tone(Hsla): override background color
- Background:
theme.status.info.bg - Foreground:
- default tone:
theme.status.info.fg - custom
tone(...):theme.content.on_status
- default tone:
use gpui::rgb;
use yororen_ui::component::badge;
let view = badge("Experimental").tone(rgb(0xFFE1A6));- When you set a custom
tone, the foreground switches totheme.content.on_statusfor contrast.
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.