Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { States1, type States1Props } from "@/components/dashboardblocks/states/states-01"type Metric = Awaited<ReturnType<States1Props["load"]>>[number]const metrics: Metric[] = [ { formatter: (value) => `$${value.toLocaleString("en-US")}`, key: "revenue", label: "Revenue", previous: 42890, value: 48210, }, { key: "orders", label: "Orders", previous: 1210, value: 1284 }, { changeType: "points", formatter: (value) => `${value}%`, goodDirection: "down", key: "refunds", label: "Refund rate", previous: 2.1, value: 1.8, },]export default function StatesDemo() { return ( <div className="w-full max-w-lg"> <States1 title="Overview" description="Last 30 days" placeholders={3} load={() => Promise.resolve(metrics)} /> </div> )}