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 { PollWidget } from "@/components/ui/poll-widget"export default function PollWidgetDemo() { return ( <div className="w-full max-w-sm"> <PollWidget question="Which framework do you prefer?" options={[ { id: "react", label: "React" }, { id: "vue", label: "Vue" }, { id: "svelte", label: "Svelte" }, ]} defaultValue="react" votes={{ react: 12, vue: 7, svelte: 4 }} onVote={(ids) => console.log(ids)} > <PollWidget.Question /> <PollWidget.Options> <PollWidget.Option value="react" /> <PollWidget.Option value="vue" /> <PollWidget.Option value="svelte" /> </PollWidget.Options> <PollWidget.Submit /> </PollWidget> </div> )}