feedback

status-badge

Two badges that render caller-defined tiers — the badge carries no domain vocabulary, the caller supplies the ramp or status map.

2020
5050
8080
110110

Four values (20, 50, 80, 110) bucketed into a three-step ramp — each step gets its own tone and glyph.

Installation

Usage

StatusBadge: RampBadge · StatusBadge

Use when

  • RampBadge — a numeric value bucketed into tiers (load level, queue depth)
  • StatusBadge — a string status looked up in a caller-provided variant map; unknown statuses fall back to muted neutral

Five statuses (including an unknown 'archived') resolved against a caller map — unknown falls back to muted.

DraftActivePausedFailedarchived

Five statuses (including an unknown 'archived') resolved against a caller map — unknown falls back to muted.