Badge

To build in the app

Canon 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

#statuses

All eight statuses with the default dot indicator.

PaidFailedOverdueDraftArchivedPendingReadyShipped

With icon

#with-icon

icon takes a vendored name instead of the dot; rendered solid at xs in the badge's text colour.

PaidShippedAwaiting roastSync failed

No icon

#no-icon

icon="none": the label alone, for an off state with nothing to mark. A processor's Active carries a check and its Inactive nothing.

ActiveInactive

Inside a table row

#in-table

Badges in status and payment columns. The frame uses the workshop's table classes inline; it becomes Table once that unit lands.

Order #CustomerStatusPayment
PR-2024-001Nolan's BakeryReadyPaid
PR-2024-002Parkview ProvisionsRoastingOverdue
PR-2024-003Café SolanoShippedFailed

Props

NameTypeDefaultNotes
statussuccess | error | warning | info | neutral | pending | ready | shippedneutral
icon"dot" | "none" | stringdotdot 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
labelstring—Required. The badge text
classNamestring—Maps to the app's classes: argument