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 { AnticipationPrimitive } from "@/components/motion-lexicon/primitives/anticipation"import { Button } from "@/components/ui/button"import { Card, CardContent } from "@/components/ui/card"const items = [ { id: 1, label: "Inbox" }, { id: 2, label: "Starred" }, { id: 3, label: "Archive" },]export default function AnticipationDemo() { const [selectedId, setSelectedId] = useState(1) const selected = items.find((item) => item.id === selectedId) return ( <div className="flex w-full max-w-sm flex-col gap-4"> <div className="flex flex-wrap items-center gap-2"> {items.map((item) => ( <Button key={item.id} variant={selectedId === item.id ? "default" : "outline"} onClick={() => setSelectedId(item.id)} > {item.label} </Button> ))} </div> <Card> <CardContent> <AnticipationPrimitive trigger={selectedId}> <div className="text-sm font-medium">{selected?.label}</div> <p className="text-sm text-muted-foreground"> Showing the contents of your {selected?.label.toLowerCase()} folder. </p> </AnticipationPrimitive> </CardContent> </Card> </div> )}