tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definitions

⎇ main widgets/badge/README.md Markdown · 18 lines · 572 B History raw

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-badge
2
3Small chip for a count or a status.
4
5Two shapes:
6
7- `count_badge_view(n, kind)` — oval chip with a number inside ("3", "12",
8  "99+"). For notifications, unread items and so on.
9- `dot_badge_view(kind)` — an 8px circle with no content. For connection state
10  (online/offline/idle) or "there is something new".
11
12Four `BadgeKind`s with a semantic palette (Info / Success / Warning / Error /
13Neutral) — the colours do **not** change with the theme, so the semantics stay
14consistent.
15
16---
17
18Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-badge

Small chip for a count or a status.

Two shapes:

Four BadgeKinds with a semantic palette (Info / Success / Warning / Error / Neutral) — the colours do not change with the theme, so the semantics stay consistent.


Part of llimphi — see llimphi.