Background work keeps ticking in the pill. Open it, pause a task, or clear the one waiting on you.
A live status of background agent tasks for a header or sidebar – one quiet pill, "3 running · 2 need you"; open it for the tasks with a filling ring, the step each is on and its steps, Pause and Resume, and Open on the ones that wait for you.
The pill counts running and needs-you tasks; press it to open the panel. Steps tick forward on their own and announce to screen readers. Pause a running row to freeze it, Resume to let it go again; Open on a needs-you row clears it back to running. Enter opens the panel and focuses the first row, arrows rove the rows, Esc and tabbing away close it.
Options for the assembled component.
tasks*NowTask[]Id, title, state, step, done and total per task.
open / defaultOpen / onOpenChangeboolean / (open) => voidControlled or uncontrolled panel state.
onPause / onResume / onOpen(id) => voidRow actions. Without a handler the button hides.
onOpenAll() => voidFooter Open Tasks button.
align"start""end"Which edge of the trigger the panel aligns to. Defaults to end.
labelsPartial<NowLabels>Overrides for every string the component renders.
classNamestringExtra class on the root.
_running-now/running-now.tsxPill trigger and dialog panel: count parts with swapping numbers, task rows with pie marks, step text, pause/resume/open actions and announcements.
_running-now/now-model.tsCounts, pie fraction, mark color, step and aria text per state, and the trigger summary/plural logic.
_running-now/types.tsNowTask, NowState and the label table.
_running-now/use-now-script.tsPlays the demo loop: steps advance, tasks complete, one goes needs-you and the run resets.
_running-now/running-now.cssAll colors and spacing as tokens on .rn, with a dark theme, RTL, touch and reduced-motion handling.
Recreated from the behavior of a reference status pill. Colors and spacing are the reference values.
Background work keeps ticking in the pill. Open it, pause a task, or clear the one waiting on you.