Skip to content
Viewership Inquire
Astro UI

Task Rows.

Live agent task status as expandable capsules or a list.

AgentComponentNo dependencies Beautiful UI, MIT

.md
Matched campaigns to sessions 6/6
Flagged missing UTM tags 0
Reading prompt tracker export 3 files
Scoring share of voice 68%
Northwind weekly report email draft
Spring launch approval note draft

Install

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy TaskRows.astro

    Paste into src/components/viewership/task-rows/

  3. Use it

    Page.astro
    ---
    import TaskRows from "../components/viewership/task-rows/TaskRows.astro";
    ---
    
    <TaskRows />

Props 5

PropTypeDefaultDescription
rows { key?: string; label: string; amount?: string; status: "done" | "running" | "pending" | "failed" | "sequence"; step?: number; details?: { label: string; meta: string }[] }[] · Tasks. "sequence" plays pending, failed (retrying), completed. `step` is the number in the spinner.
variant "capsules" | "list" "capsules" Capsules, or one card with a divided list.
labels Partial<{ completed; failed; running; pending; retrying }> · Pill text and screen-reader status.
autoplay boolean true Play in view. When false or under reduced motion, the settled state renders.
loop boolean false Replay after a hold. Stops once a row is toggled.

Source 1 file

Ported from Beautiful UI, MIT. Notices.