Aurora AI Agent
aurora-dinglebear-ai/aurora-ai-agentUnverifiedBlock
Aurora-native agent parity surface from AI Elements.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-agent.jsonSource
1"use client"23import * as React from "react"4import { Bot, CircleDashed, CirclePlus, Clock, SquareCode } from "lucide-react"5import { cn } from "@/lib/utils"6import { Badge } from "@/registry/aurora/ui/badge"7import { Spinner } from "@/registry/aurora/ui/spinner"89export type AgentStatus = "idle" | "running" | "blocked" | "completed"1011export interface AgentProps extends React.HTMLAttributes<HTMLDivElement> {12 /** Agent display name. */13 name: string14 /** Short role / responsibility line under the name. */15 role?: string16 /** Lifecycle status — drives the status pill and live affordances. */17 status?: AgentStatus18 /** Render the Axon-orange Agent identity chip beside the name. */19 badge?: boolean20 /** Model identifier shown in the metadata footer. */21 model?: string22 /** Current task description shown in the activity row. */23 task?: string24 /** Progress 0..1 — renders the determinate progress bar + percentage. */25 progress?: number26 /** Token usage shown in the footer (formatted to k). */27 tokens?: number28 /** Elapsed time string shown in the footer. */29 elapsed?: string30 /** Layout density. "compact" = single-line tile for grids. */31 variant?: "default" | "compact"32}3334const statusTone: Record<AgentStatus, "info" | "success" | "warn" | "neutral"> = {35 running: "info",36 completed: "success",37 blocked: "warn",38 idle: "neutral",39}4041const statusLabel: Record<AgentStatus, string> = {42 idle: "Idle",43 running: "Running",44 blocked: "Blocked",45 completed: "Completed",46}4748function formatTokens(value: number): string {49 if (value >= 1000) {50 const k = value / 100051 return `${Number.isInteger(k) ? k : k.toFixed(1)}k`52 }53 return String(value)54}5556function panelStyle(style?: React.CSSProperties): React.CSSProperties {57 return {58 background: "var(--aurora-surface-raised)",59 border: "1px solid var(--aurora-border-default)",60 borderRadius: "var(--aurora-radius-1)",61 boxShadow: "var(--aurora-shadow-medium), var(--aurora-highlight-medium)",62 ...style,63 }64}6566interface AvatarProps {67 status: AgentStatus68 size: number69}7071function AgentAvatar({ status, size }: AvatarProps) {72 const dotSize = Math.round(size * 0.3)73 return (74 <span75 aria-hidden76 style={{77 position: "relative",78 display: "inline-flex",79 flexShrink: 0,80 alignItems: "center",81 justifyContent: "center",82 width: size,83 height: size,84 borderRadius: "calc(var(--aurora-radius-1) - 2px)",85// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora AI Actionaurora-ai-action | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Chain of Thoughtaurora-ai-chain-of-thought | aurora | Blocks | Unverified | 1 dep |
