shadimage
seamui
exampleagent-status-livesource: ok · hit

Agent Status Live

npx shadcn add "https://seamui.dev/r/agent-status-live.json"
free

Where it goes

stats

Interaction

animated-counter

Tags auto-generated by rules on 9/24/2026 — empty means no evidence, not lack of support.

Dependencies

Bundle weight · light

Registry dependencies

https://seamui.dev/r/agent-status.jsonhttps://seamui.dev/r/button.json

Files1 · source cached 10/9/2026, 4:14:38 AM

registry/seam/examples/agent-status-live.tsx
"use client"

import * as React from "react"

import { AgentStatus, type AgentState } from "@/registry/seam/ui/agent-status"
import { Button } from "@/registry/seam/ui/button"

const ORDER: AgentState[] = ["waiting", "working", "ready", "done", "error"]

// The chip is aria-live, so cycling states here is also a screen-reader demo:
// each change announces politely without interrupting.
export default function AgentStatusLive() {
  const [index, setIndex] = React.useState(1)

  return (
    <div className="flex items-center gap-4">
      <AgentStatus status={ORDER[index]} />
      <Button
        variant="outline"
        size="sm"
        onClick={() => setIndex((i) => (i + 1) % ORDER.length)}
      >
        Next state
      </Button>
    </div>
  )
}

More from seamui

Browse all components in this library →