Aurora AI Checkpoint
aurora-dinglebear-ai/aurora-ai-checkpointFreeBlock
Aurora-native checkpoint parity surface from AI Elements.
Install it
npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-checkpoint.jsonSource
1"use client"23import * as React from "react"4import { Clock, Database, Eye, Hexagon, RotateCcw, Save } from "lucide-react"5import { Badge } from "@/registry/aurora/ui/badge"6import { Button } from "@/registry/aurora/ui/button"78// Styles: registry/aurora/styles/aurora-components.css (@layer aurora-components).910/**11 * Checkpoint — a saved agent checkpoint card.12 *13 * Architecture is the canonical shadcn-registry pattern: a self-contained14 * `forwardRef` component with a typed prop API. Visuals match the Aurora /15 * Claude Design source 1:1 — a raised panel with a cyan save-icon tile, a16 * status badge, an optional "AUTO" tag, a monospace metadata row, and the17 * Diff / Restore action pair. A `compact` variant drops the meta + actions.18 */1920export type CheckpointStatus = "current" | "saved" | "stale"2122export interface CheckpointProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick"> {23 /** Primary checkpoint label. */24 label: string25 /** Secondary description (default variant only). */26 description?: string27 /** Lifecycle status — drives the right-aligned badge. */28 status?: CheckpointStatus29 /** Step index this checkpoint captured. */30 step?: number31 /** Relative time the checkpoint was taken. */32 time?: string33 /** Human-readable snapshot size. */34 size?: string35 /** Render the "AUTO" tag beside the label. */36 badge?: boolean37 /** Layout density. `compact` = single dense row, no meta/actions. */38 variant?: "default" | "compact"39 /** Diff / view-changes action. Renders the "Diff" button when provided. */40 onView?: () => void41 /** Restore-to-checkpoint action. Renders the "Restore" button when provided. */42 onRestore?: () => void43 /** Whole-card click (compact variant — makes the row interactive). */44 onClick?: () => void45}4647const STATUS_LABEL: Record<CheckpointStatus, string> = {48 current: "Current",49 saved: "Saved",50 stale: "Stale",51}5253const STATUS_TONE = {54 current: "success",55 saved: "neutral",56 stale: "warn",57} as const5859function MetaItem({ icon: Icon, children }: { icon: typeof Clock; children: React.ReactNode }) {60 return (61 <span62 className="aurora-text-meta inline-flex items-center gap-1.5 tabular-nums"63 style={{ color: "var(--aurora-text-muted)" }}64 >65 <Icon className="size-3.5" aria-hidden style={{ color: "var(--aurora-text-muted)", opacity: 0.85 }} />66 {children}67 </span>68 )69}7071function AutomationTag() {72 return (73 <span74// … 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 | Free | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Free | 1 dep | |
| Aurora AI Agentaurora-ai-agent | aurora | Blocks | Free | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Free | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Free | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Free | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Free | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Free | 1 dep |
