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 { AsyncCombobox } from "@/components/ui/async-combobox"type User = { id: string; name: string; email: string }const users: User[] = [ { id: "1", name: "Olivia Martin", email: "olivia@example.com" }, { id: "2", name: "Jackson Lee", email: "jackson@example.com" }, { id: "3", name: "Isabella Nguyen", email: "isabella@example.com" }, { id: "4", name: "William Kim", email: "william@example.com" }, { id: "5", name: "Sofia Davis", email: "sofia@example.com" },]async function searchUsers(query: string, { signal }: { signal: AbortSignal }) { await new Promise((resolve) => setTimeout(resolve, 300)) if (signal.aborted) throw new DOMException("Aborted", "AbortError") const q = query.toLowerCase() return users.filter((user) => user.name.toLowerCase().includes(q))}export default function AsyncComboboxDemo() { return ( <AsyncCombobox<User> className="max-w-sm" search={searchUsers} getKey={(user) => user.id} getLabel={(user) => user.name} suggestions={users.slice(0, 3)} label="Assignee" noun="people" /> )}