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 AIPromptInput from "@/components/smoothui/ai-prompt-input/index"type Attachment = { id: string; name: string; size?: number }export default function AIPromptInputDemo() { const [attachments, setAttachments] = useState<Attachment[]>([ { id: "1", name: "quarterly-report.pdf", size: 248000 }, { id: "2", name: "meeting-notes.txt", size: 3400 }, ]) return ( <AIPromptInput aria-label="Prompt" className="w-full max-w-lg" attachments={attachments} placeholder="Ask about your files…" onAttach={() => {}} onRemoveAttachment={(id) => setAttachments((prev) => prev.filter((file) => file.id !== id)) } onSubmit={(value) => console.log(value)} /> )}