Expand description
Badge widget (status/priority pills). Badge widget.
A small, single-line label with background + foreground styling and configurable left/right padding. Intended for “status”, “priority”, etc.
Design goals:
- No per-render heap allocations (draws directly to the
Frame) - Deterministic output (stable padding + truncation)
- Tiny-area safe (0 width/height is a no-op)
Structs§
- Badge
- A compact label with padding and style.