Badge
To build in the appCanon status pill from the catalog's rt-badge. Eight statuses; a coloured dot or a solid icon leads the label. Respellings from the catalog: 13px text with px-3 py-1 is ui-xs with px-2 py-0.5 here (the app's tw-text-sm pills are 12.25px, so this matches their density); the border is the status dot token at /25 (neutral /30) instead of a hex; ready and shipped use the new status-ready-* and status-shipped-* tokens instead of inline hex. The mocks' bordered .badge is superseded (conflict 3).
App: Ui::BadgeComponent (to build)
Statuses
#statusesAll eight statuses with the default dot indicator.
With icon
#with-iconicon takes a vendored name instead of the dot; rendered solid at xs in the badge's text colour.
No icon
#no-iconicon="none": the label alone, for an off state with nothing to mark. A processor's Active carries a check and its Inactive nothing.
Inside a table row
#in-tableBadges in status and payment columns. The frame uses the workshop's table classes inline; it becomes Table once that unit lands.
| Order # | Customer | Status | Payment |
|---|---|---|---|
| PR-2024-001 | Nolan's Bakery | Ready | Paid |
| PR-2024-002 | Parkview Provisions | Roasting | Overdue |
| PR-2024-003 | Café Solano | Shipped | Failed |
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| status | success | error | warning | info | neutral | pending | ready | shipped | neutral | |
| icon | "dot" | "none" | string | dot | dot renders the coloured circle; none, the label alone (2026-11-05: an off state with nothing to mark, such as a processor's Inactive beside an Active with a check); any vendored icon name (check, truck, hourglass...) renders it at xs, always solid — there is no family prop |
| label | string | — | Required. The badge text |
| className | string | — | Maps to the app's classes: argument |