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 { MinusIcon, PlusIcon } from "lucide-react"import { Button } from "@/components/ui/button"import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger,} from "@/components/ui/drawer"export default function DrawerDemo() { const [goal, setGoal] = useState(350) return ( <Drawer defaultOpen> <DrawerTrigger asChild> <Button variant="outline">Open Drawer</Button> </DrawerTrigger> <DrawerContent className="w-full max-w-sm"> <DrawerHeader> <DrawerTitle>Move Goal</DrawerTitle> <DrawerDescription>Set your daily activity goal.</DrawerDescription> </DrawerHeader> <div className="flex items-center justify-center gap-4 p-4"> <Button variant="outline" size="icon" className="size-8 shrink-0 rounded-full" aria-label="Decrease goal" onClick={() => setGoal(Math.max(200, goal - 10))} > <MinusIcon /> </Button> <div className="text-center"> <div className="text-4xl font-bold tabular-nums">{goal}</div> <div className="text-xs uppercase text-muted-foreground">calories/day</div> </div> <Button variant="outline" size="icon" className="size-8 shrink-0 rounded-full" aria-label="Increase goal" onClick={() => setGoal(Math.min(500, goal + 10))} > <PlusIcon /> </Button> </div> <DrawerFooter> <Button>Submit</Button> <DrawerClose asChild> <Button variant="outline">Cancel</Button> </DrawerClose> </DrawerFooter> </DrawerContent> </Drawer> )}