Agent Usage Card

An interactive agent status and usage card with segmented progress tracking, live telemetry hours advancement, morph icon controls, squircle buttons, squishmoji status avatar, and a collapsible cost breakdown.

11.4 KB
•
Updated on September 28, 2026
Active on Canvas Stage

Installation

Bash
pnpm dlx shadcn@latest add @spaceui/components-spaceui-interactions-agent-usage-card

Usage

Code
import { AgentUsageCard } from '@/components/interactions/agent-usage-card'
Code
<AgentUsageCard
  title="Site Reliability Agent"
  description="Autonomous incident mitigation and cluster telemetry."
  usedHours={185}
  totalHours={320}
  resetLabel="Resets in 8 days"
  defaultWorking={true}
/>

API Reference

AgentUsageCard Props

PropTypeDefaultDescription
title
string
Site Reliability AgentTitle of the agent or service
description
string
Autonomous incident mitigation and cluster telemetry.Subtitle description beneath the title
usedHours
number
185Number of hours consumed so far
totalHours
number
320Total monthly quota in hours
resetLabel
string
Resets in 8 daysHelper text indicating when the billing quota resets
costItems
CostItem[]
DEFAULT_COST_ITEMSBreakdown of hourly costs per component/model
defaultWorking
boolean
falseInitial working / running state
defaultExpanded
boolean
falseInitial expanded state of the cost breakdown accordion
onWorkingChange
(working: boolean) => void
-Callback triggered when the agent is started or paused
className
string
-Additional class name applied to outer card container

Related Components

Agent PipelineInteraction

An interactive multi-agent pipeline visualization with real-time physics, event logs, and playback controls.

View
Currency ConverterInteraction

An interactive currency converter and token swap card with real-time exchange rates, NumberFlow spring animations, Space UI Select with flags, and a liquid metal squircle button.

View
Deploy PipelineInteraction

A self-playing deploy pipeline that advances on its own, pauses on hover, and reveals per-step detail — drop it in to turn a static log into a living status feed.

View
Agent Pipeline
Realtime Voice
pnpm dlx shadcn@latest add @spaceui/components-spaceui-interactions-agent-usage-card