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 { 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"import { Textarea } from "@/components/ui/textarea"import { UnsavedChangesGuard } from "@/components/ui/unsaved-changes-guard"const leaving = { pending: { kind: "link" as const, href: "/settings" }, proceed: () => {}, cancel: () => {},}export default function UnsavedChangesGuardDemo() { return ( <> <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Edit profile</CardTitle> <CardDescription>Update your public details.</CardDescription> </CardHeader> <CardContent className="grid gap-4"> <div className="grid gap-2"> <Label htmlFor="name">Name</Label> <Input id="name" defaultValue="Olivia Martin" /> </div> <div className="grid gap-2"> <Label htmlFor="bio">Bio</Label> <Textarea id="bio" defaultValue="Designer and occasional writer." /> </div> </CardContent> <CardFooter className="justify-end gap-2"> <Button variant="outline">Cancel</Button> <Button>Save changes</Button> </CardFooter> </Card> <UnsavedChangesGuard when guard={leaving} /> </> )}