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 { FilterGrid, type FilterDefinition } from "@/components/motion-lexicon/filter-grid"type Product = { id: string name: string price: string onSale: boolean isNew: boolean}const products: Product[] = [ { id: "1", name: "Trail Runner", price: "$89", onSale: true, isNew: false }, { id: "2", name: "Canvas Low", price: "$64", onSale: false, isNew: true }, { id: "3", name: "City Loafer", price: "$120", onSale: false, isNew: false }, { id: "4", name: "Court Classic", price: "$75", onSale: true, isNew: true }, { id: "5", name: "Hiker Boot", price: "$150", onSale: false, isNew: false }, { id: "6", name: "Slip-On Sneaker", price: "$58", onSale: true, isNew: false },]const filters: FilterDefinition<Product>[] = [ { id: "all", label: "All", match: () => true }, { id: "sale", label: "Sale", match: (p) => p.onSale }, { id: "new", label: "New", match: (p) => p.isNew },]export default function FilterGridDemo() { return ( <div className="w-full max-w-lg"> <FilterGrid items={products} filters={filters} getKey={(p) => p.id} label="Filter products" columns={3} renderItem={(p) => ( <div className="flex flex-col gap-1"> <span className="text-sm font-medium">{p.name}</span> <span className="text-xs text-muted-foreground">{p.price}</span> </div> )} /> </div> )}