Base
JS behaviour
Status badge
The five deploy states (running/success/failed/queued/canceled) with a soft icon swap and a width that follows the label.
Real scenarios
The component as it is used in a product — not a specimen grid.
The deploy ledger
All five states in one honest list — labels localize with the page, and the running one announces itself politely.
-
nabu-web
main18 min ago Succeeded -
nabu-api
mainstarted 40s ago Deploying -
checkout
feat/gift-cards1 h ago Failed -
docs
mainwaiting for runner Queued -
mobile
release/4by مریم Canceled
Drive one yourself
The badge follows its data-status attribute, so a Livewire re-render is all the choreography it needs — the icon swaps, the width settles on the new label.
release/5
Deploying
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| status | string | queued | running · success · failed · queued · canceled. |
| labels | array | [] | Label overrides: ['running' => 'Deploying']. |
| live | bool | false | Takes the status role so changes are announced by screen readers. |
Snippet
<x-nx::status-badge :status="$deploy->status" live
:labels="['running' => 'در حال دپلوی']" />