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 { SidebarSubmenu, type SubmenuSection } from "@/components/sidebar-submenu"const sections: SubmenuSection[] = [ { title: "Inbox", tone: "light-dark(oklch(0.64 0.18 45), oklch(0.74 0.15 50))", items: [ { label: "Unread", icon: <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth={1.4}><rect x="2" y="3.5" width="12" height="9" rx="1.75" /></svg> }, { label: "Mentions", icon: <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth={1.4}><circle cx="8" cy="8" r="2.5" /></svg> }, { label: "Archived", icon: <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth={1.4}><rect x="2" y="2.75" width="12" height="3.25" rx="1" /></svg> }, ], }, { title: "Analytics", tone: "light-dark(oklch(0.55 0.18 260), oklch(0.72 0.14 255))", items: [ { label: "Overview", icon: <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth={1.4}><path d="m2 11 4-4 3 3 5-5.5" /></svg> }, { label: "Reports", icon: <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth={1.4}><path d="M4 1.75h5.25L12.5 5v8.25H4z" /></svg> }, ], },]export default function SidebarSubmenuDemo() { return <SidebarSubmenu sections={sections} defaultActive={{ section: 0, item: 1 }} />}