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 { CollapsibleSidebar } from '@/components/collapsible-sidebar';const items = [ { id: 'home', label: 'Home', icon: <svg className='size-5' viewBox='0 0 16 16' fill='none' stroke='currentColor' strokeWidth={1.5} strokeLinejoin='round' aria-hidden><path d='M2.75 7 8 2.75 13.25 7v5.25H2.75Z' /></svg> }, { id: 'inbox', label: 'Inbox', icon: <svg className='size-5' viewBox='0 0 16 16' fill='none' stroke='currentColor' strokeWidth={1.5} strokeLinejoin='round' aria-hidden><path d='M2.75 9.25 4.5 3.5h7l1.75 5.75v3h-10.5Z' /></svg> }, { id: 'projects', label: 'Projects', icon: <svg className='size-5' viewBox='0 0 16 16' fill='none' stroke='currentColor' strokeWidth={1.5} strokeLinejoin='round' aria-hidden><path d='M2.75 4.25h4.5l1.5 1.5h4.5v6.5H2.75Z' /></svg> }, { id: 'settings', label: 'Settings', icon: <svg className='size-5' viewBox='0 0 16 16' fill='none' stroke='currentColor' strokeWidth={1.5} aria-hidden><circle cx='8' cy='8' r='2' /></svg> },];export default function CollapsibleSidebarDemo() { const [value, setValue] = useState('home'); const [expanded, setExpanded] = useState(true); return ( <CollapsibleSidebar items={items} value={value} onChange={setValue} expanded={expanded} onExpandedChange={setExpanded} className='h-96 w-[min(560px,100%)]' > <div className='flex flex-col gap-2 p-4'> <p className='text-sm font-semibold capitalize text-foreground'>{value}</p> <p className='text-sm text-muted-foreground'>Last updated 2 hours ago.</p> </div> </CollapsibleSidebar> );}