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 { BoldIcon, ItalicIcon, LinkIcon, UnderlineIcon } from "lucide-react"import { SelectionToolbar, SelectionToolbarItem, SelectionToolbarSeparator,} from "@/components/ui/selection-toolbar"export default function SelectionToolbarDemo() { return ( <div className="w-full max-w-md"> <SelectionToolbar> <SelectionToolbarItem aria-label="Bold" onSelect={(text) => console.log(text)}> <BoldIcon /> </SelectionToolbarItem> <SelectionToolbarItem aria-label="Italic" onSelect={(text) => console.log(text)}> <ItalicIcon /> </SelectionToolbarItem> <SelectionToolbarItem aria-label="Underline" onSelect={(text) => console.log(text)}> <UnderlineIcon /> </SelectionToolbarItem> <SelectionToolbarSeparator /> <SelectionToolbarItem aria-label="Link" onSelect={(text) => console.log(text)}> <LinkIcon /> </SelectionToolbarItem> </SelectionToolbar> <p className="text-sm leading-relaxed"> Select some of this text to open the formatting toolbar. The toolbar floats above your selection and closes when you click elsewhere or press Escape. </p> </div> )}