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 ExpandableCards, { type Card } from "@/components/smoothui/expandable-cards/index"import { avatarImage, photoImage } from "@/preview/images"const cards: Card[] = [ { id: 1, title: "Mountain Lake", image: photoImage("mountain lake", 800, 600), content: "A calm alpine lake at dawn.", author: { name: "Olivia Martin", role: "Photographer", image: avatarImage("Olivia Martin"), }, }, { id: 2, title: "City Night", image: photoImage("city at night", 800, 600), content: "Neon reflections on wet streets.", author: { name: "Liam Chen", role: "Designer", image: avatarImage("Liam Chen"), }, }, { id: 3, title: "Forest Trail", image: photoImage("forest trail", 800, 600), content: "Morning light through tall pines.", },]export default function ExpandableCardsDemo() { const [selected, setSelected] = useState<number | null>(1) return ( <div className="w-full max-w-lg"> <ExpandableCards cards={cards} onSelect={(id) => setSelected(id)} selectedCard={selected} /> </div> )}