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 { InfiniteList } from '@/components/ui/infinite-list'const PAGE = 8const TOTAL = 24const all = Array.from({ length: TOTAL }, (_, i) => ({ id: String(i + 1), title: `Notification ${i + 1}`, body: 'Shared a new file with your team.',}))export default function InfiniteListDemo() { const [count, setCount] = useState(PAGE) const hasMore = count < TOTAL const loadMore = () => new Promise<void>((resolve) => window.setTimeout(() => { setCount((c) => Math.min(TOTAL, c + PAGE)) resolve() }, 800), ) return ( <InfiniteList className='h-72 w-full max-w-md rounded-lg border' hasMore={hasMore} onLoadMore={loadMore} > {all.slice(0, count).map((item) => ( <div key={item.id} className='px-3 py-2.5'> <p className='text-sm font-medium'>{item.title}</p> <p className='text-muted-foreground text-sm'>{item.body}</p> </div> ))} </InfiniteList> )}