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 { MicSelector, MicSelectorContent, MicSelectorEmpty, MicSelectorInput, MicSelectorItem, MicSelectorLabel, MicSelectorList, MicSelectorTrigger, MicSelectorValue,} from "@/components/ai-elements/mic-selector"export default function MicSelectorDemo() { if (typeof navigator !== "undefined" && !navigator.mediaDevices) { Object.defineProperty(navigator, "mediaDevices", { configurable: true, value: { enumerateDevices: async () => [], addEventListener: () => {}, removeEventListener: () => {}, }, }) } return ( <MicSelector defaultOpen> <MicSelectorTrigger className="w-full max-w-sm" aria-label="Select microphone"> <MicSelectorValue /> </MicSelectorTrigger> <MicSelectorContent> <MicSelectorInput /> <MicSelectorList> {(devices) => devices.map((device) => ( <MicSelectorItem key={device.deviceId} value={device.deviceId}> <MicSelectorLabel device={device} /> </MicSelectorItem> )) } </MicSelectorList> <MicSelectorEmpty /> </MicSelectorContent> </MicSelector> )}