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 { type ReactNode } from "react"import { BoldIcon, ItalicIcon, StrikethroughIcon, UnderlineIcon } from "lucide-react"import { TooltipGroup, useTooltip } from "@/components/tooltip-group"function ToolbarButton({ label, shortcut, children }: { label: string; shortcut: string; children: ReactNode }) { const { anchorRef, triggerProps, tooltipProps } = useTooltip( <> {label} <kbd className="font-sans text-background/55">{shortcut}</kbd> </> ) return ( <> <button ref={anchorRef} type="button" aria-label={label} {...triggerProps} className="flex size-9 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" > {children} </button> <span {...tooltipProps}> {label}, {shortcut} </span> </> )}export default function TooltipGroupDemo() { return ( <TooltipGroup className="mt-14"> <div className="flex gap-1 rounded-md border p-1"> <ToolbarButton label="Bold" shortcut="Ctrl+B"> <BoldIcon className="size-4" /> </ToolbarButton> <ToolbarButton label="Italic" shortcut="Ctrl+I"> <ItalicIcon className="size-4" /> </ToolbarButton> <ToolbarButton label="Underline" shortcut="Ctrl+U"> <UnderlineIcon className="size-4" /> </ToolbarButton> <ToolbarButton label="Strikethrough" shortcut="Ctrl+Shift+X"> <StrikethroughIcon className="size-4" /> </ToolbarButton> </div> </TooltipGroup> )}