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 { TablePagination, TablePageTransition, useTablePagination } from "@/components/ui/table-pagination"const names = ["Olivia Martin", "Jackson Lee", "Isabella Nguyen", "William Kim", "Sofia Davis", "Liam Johnson", "Emma Wilson", "Noah Brown", "Ava Garcia", "Ethan Miller", "Mia Chen", "Lucas Moore"]const users = Array.from({ length: 24 }, (_, i) => ({ id: String(i + 1), name: names[i % names.length], email: `user${i + 1}@example.com`,}))export default function TablePaginationDemo() { const p = useTablePagination({ total: users.length, defaultPageSize: 10 }) return ( <div className="w-full max-w-lg space-y-3"> <div className="overflow-hidden rounded-md border"> <table className="w-full text-sm"> <thead className="bg-muted/50 text-left text-muted-foreground"> <tr> <th className="px-3 py-2 font-medium">Name</th> <th className="px-3 py-2 font-medium">Email</th> </tr> </thead> <TablePageTransition page={p.page} className="divide-y"> {p.slice(users).map((u) => ( <tr key={u.id} className="hover:bg-muted/50"> <td className="px-3 py-2">{u.name}</td> <td className="px-3 py-2 text-muted-foreground">{u.email}</td> </tr> ))} </TablePageTransition> </table> </div> <TablePagination total={users.length} page={p.page} onPageChange={p.setPage} pageSize={p.pageSize} onPageSizeChange={p.setPageSize} /> </div> )}