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, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"export default function CodeSlotsDemo() { const [digits, setDigits] = useState(["4", "2", "", "", "", ""]) const update = (index: number, raw: string) => { const digit = raw.replace(/\D/g, "").slice(-1) setDigits((prev) => prev.map((c, i) => (i === index ? digit : c))) } return ( <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Enter verification code</CardTitle> <CardDescription>We sent a 6-digit code to your phone.</CardDescription> </CardHeader> <CardContent> <div className="grid gap-2"> <Label htmlFor="code-0">Code</Label> <div className="flex gap-2"> {digits.map((digit, i) => ( <Input key={i} id={`code-${i}`} aria-label={`Digit ${i + 1}`} inputMode="numeric" maxLength={1} value={digit} onChange={(e) => update(i, e.target.value)} className="min-w-0 flex-1 text-center" /> ))} </div> </div> </CardContent> <CardFooter className="flex-col gap-2"> <Button className="w-full">Verify</Button> </CardFooter> </Card> )}