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 { Stat, StatChange, StatGroup, StatLabel, StatSparkline, StatValue } from '@/components/dashboardblocks/stat-group'const formatUsd = (value: number) => `$${value.toLocaleString('en-US')}`const formatPercent = (value: number) => `${value}%`export default function StatGroupDemo() { return ( <StatGroup className='w-full max-w-2xl grid-cols-1 overflow-hidden rounded-xl md:grid-cols-3'> <Stat> <StatLabel>Revenue</StatLabel> <StatValue>$12,400</StatValue> <StatChange metric={{ key: 'revenue', label: 'Revenue', value: 12400, previous: 11000, formatter: formatUsd }} /> <StatSparkline label='Revenue over 7 days' data={[9, 10, 9.5, 11, 11.8, 12, 12.4]} /> </Stat> <Stat> <StatLabel>Subscribers</StatLabel> <StatValue>2,350</StatValue> <StatChange metric={{ key: 'subscribers', label: 'Subscribers', value: 2350, previous: 2100 }} /> <StatSparkline label='Subscribers over 7 days' data={[2100, 2140, 2180, 2210, 2260, 2300, 2350]} /> </Stat> <Stat> <StatLabel>Churn</StatLabel> <StatValue>3.2%</StatValue> <StatChange metric={{ key: 'churn', label: 'Churn', value: 3.2, previous: 4.1, changeType: 'points', goodDirection: 'down', formatter: formatPercent, }} /> <StatSparkline label='Churn over 7 days' data={[4.6, 4.4, 4.5, 4.1, 3.8, 3.6, 3.2]} /> </Stat> </StatGroup> )}