Task Rows

Live agent task status — running, failed, completed.

Installation

pnpm dlx shadcn@latest add @ward/task-rows

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/task-rows.json

Usage

import TaskRows from "@/components/ward/TaskRows";
<TaskRows
  variant="List"
  rows={[
    { key: "fetch", label: "Fetch invoices", amount: "24 files", status: "done", details: [{ label: "Downloaded PDFs", meta: "24/24" }] },
    { key: "match", label: "Match payments", amount: "18 rows", status: "running", step: 2, details: [{ label: "Reading bank export", meta: "1 file" }] },
  ]}
  onToggleRow={(key, open) => console.log(key, open)}
/>

Props

PropTypeDefaultDescription
variant"Capsules" | "List""Capsules"Row layout: separate rounded capsules or one card with divided rows.
rowsTaskRow[]TASK_ROWSTasks to show, each with a key, label, amount, status (done, running or sequence) and expandable detail lines.
labelsPartial<TaskRowsLabels>-Overrides for the Completed and Failed status pill text.
classNamestring-Extra classes added to the root element.
onToggleRow(key: string, open: boolean) => void-Called with a row's key and new state when it is expanded or collapsed.

Ward · Version 1.1.0 · Registry manifest