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 { useRef } from "react";import { BoldIcon, ItalicIcon, UnderlineIcon, LinkIcon } from "lucide-react";import { SelectionToolbar, SelectionToolbarButton, SelectionToolbarSeparator } from "@/components/ui/selection-toolbar";export default function SelectionToolbarDemo() { const ref = useRef<HTMLDivElement>(null); return ( <div className="w-full max-w-md"> <div ref={ref} contentEditable suppressContentEditableWarning className="rounded-lg border p-4 text-sm leading-relaxed outline-none"> Select some text in this paragraph to format it with the toolbar. </div> <SelectionToolbar target={ref}> <SelectionToolbarButton label="Bold" shortcut={["⌘", "B"]} icon={<BoldIcon />} /> <SelectionToolbarButton label="Italic" shortcut={["⌘", "I"]} icon={<ItalicIcon />} /> <SelectionToolbarButton label="Underline" shortcut={["⌘", "U"]} icon={<UnderlineIcon />} /> <SelectionToolbarSeparator /> <SelectionToolbarButton label="Link" icon={<LinkIcon />} /> </SelectionToolbar> </div> );}