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 main 18 min ago Succeeded
  • nabu-api main started 40s ago Deploying
  • checkout feat/gift-cards 1 h ago Failed
  • docs main waiting for runner Queued
  • mobile release/4 by مریم 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

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' => 'در حال دپلوی']" />