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 { ArchiveIcon, BellIcon, Trash2Icon } from "lucide-react"import { SwipeActions, type SwipeAction } from "@/components/ui/swipe-actions"const rows = [ { id: "1", title: "Design review", preview: "Can we move the review to Thursday?" }, { id: "2", title: "Invoice #2041", preview: "Your invoice for March is attached." }, { id: "3", title: "Team lunch", preview: "Pizza or sushi this Friday?" },]export default function SwipeActionsDemo() { const archive: SwipeAction = { id: "archive", label: "Archive", icon: <ArchiveIcon />, tone: "info", removes: true, onAction: () => {}, } const remove: SwipeAction = { id: "delete", label: "Delete", icon: <Trash2Icon />, tone: "danger", removes: true, onAction: () => {}, } const mute: SwipeAction = { id: "mute", label: "Mute", icon: <BellIcon />, tone: "neutral", onAction: () => {}, } return ( <div className="w-full max-w-md divide-y overflow-hidden rounded-xl border"> {rows.map((row) => ( <SwipeActions key={row.id} endActions={[remove, archive, mute]}> <div className="px-4 py-3"> <p className="text-sm font-medium">{row.title}</p> <p className="text-muted-foreground truncate text-sm">{row.preview}</p> </div> </SwipeActions> ))} </div> )}