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 { useState } from "react"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"import { SkeletonSwap } from "@/components/ui/skeleton-swap"export default function SkeletonSwapDemo() { const [loading, setLoading] = useState(false) const reload = () => { setLoading(true) window.setTimeout(() => setLoading(false), 1500) } return ( <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Monthly revenue</CardTitle> <CardDescription>Updated from your latest orders.</CardDescription> </CardHeader> <CardContent className="grid gap-4"> <SkeletonSwap loading={loading} skeleton={ <div className="grid gap-2"> <div className="h-8 w-32 rounded bg-muted" /> <div className="h-4 w-48 rounded bg-muted" /> </div> } > <div className="grid gap-1"> <p className="text-3xl font-semibold">$12,480</p> <p className="text-sm text-muted-foreground">+18% from last month</p> </div> </SkeletonSwap> <Button variant="outline" onClick={reload} disabled={loading}> Refresh </Button> </CardContent> </Card> )}