Skip to Content
Components

Status pill

One live line for what an agent is doing right now, fading between its states and resizing to fit them.

A status pill shows a single line of what the agent is up to. Its state picks the glyph and colour — thinking, reading and working shimmer while they run — and a new state, label, file or action fades the old line out before the new one arrives. The bar variant is taller and draws a progress track along its bottom.

Preview
Live
Planning the change1 of 4
States
Waiting for approval
File
EditingTSXPricingCard.tsx
Action
Needs your review
Bar
Planning the change1 of 4

Usage

<!-- include core.css + status-pill.css -->
<div class="dm-spl">
  <div class="dm-spl-pill" aria-live="polite">
    <div class="dm-spl-in">
      <span class="dm-g"><!-- glyph --></span>
      <span class="dm-shim">Reading repository</span>
      <span class="dm-m">2 of 4</span>
    </div>
  </div>
</div>

<!-- bar variant with a progress track -->
<div class="dm-spl dm-bar">
  <div class="dm-spl-pill" aria-live="polite">
    <div class="dm-spl-in">
      <span class="dm-g"><!-- glyph --></span>
      <span class="dm-shim">Writing tests</span>
    </div>
    <div class="dm-spl-track"><div class="dm-spl-fill" style="width:80%"></div></div>
  </div>
</div>

Properties

NameTypeDescription
labelstringWhat the agent is doing, in a few words. Required.
stateidle | thinking | reading | working | waiting | donePicks the glyph and colour. thinking, reading and working shimmer while they run.
metastringQuiet detail after the label, like "2 of 4". Changing only this does not restart the pill.
file{ name: string; type?: string }A file chip after the label.
action{ label: string; onClick: () => void }A button at the end, for when the agent needs the person.
progressnumber0 to 100, drawn as a track along the bottom of the bar variant.
variantpill | barpill hugs its content; bar is taller and leaves room for the progress track.

Theming

Works in light and dark (data-theme="dark") and in the Soft style (data-style="soft"). The pill sits on a surface with the shared shadow, so it picks up the theme's surface and token colours; in Soft it is rounder, and in dark it reads against the dark stage.

On this page