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 { SkeletonReveal } from "@/components/spectrumui/skeleton-reveal"import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"import { Card, CardContent, CardFooter } from "@/components/ui/card"import { Label } from "@/components/ui/label"import { Switch } from "@/components/ui/switch"import { avatarImage } from "@/preview/images"export default function SkeletonRevealDemo() { const [loading, setLoading] = useState(false) return ( <Card className="w-full max-w-sm"> <CardContent> <SkeletonReveal loading={loading} skeleton={ <div className="flex items-center gap-3"> <div className="size-10 rounded-full bg-muted" /> <div className="grid gap-2"> <div className="h-4 w-32 rounded bg-muted" /> <div className="h-3 w-48 rounded bg-muted" /> </div> </div> } > <div className="flex items-center gap-3"> <Avatar> <AvatarImage src={avatarImage("Olivia Martin")} alt="Olivia Martin" /> <AvatarFallback>OM</AvatarFallback> </Avatar> <div className="grid gap-0.5"> <p className="text-sm font-medium">Olivia Martin</p> <p className="text-sm text-muted-foreground">olivia@example.com</p> </div> </div> </SkeletonReveal> </CardContent> <CardFooter className="justify-between"> <Label htmlFor="loading">Loading</Label> <Switch id="loading" checked={loading} onCheckedChange={setLoading} /> </CardFooter> </Card> )}