MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / OPAnnotationRow

Function OPAnnotationRow

apps/start/src/components/charts/op-tooltip.tsx:334–360  ·  view source on GitHub ↗

* Single row used for every tooltip annotation (user references + auto- * detected referrer spikes). Matches the chart-marker visual: the icon * fills the circle, surrounded by a high-contrast border. Callers pass * fill-aware icons (e.g. ` ` or a sized Lucide icon).

({
  icon,
  title,
  description,
}: {
  icon: ReactNode;
  title: ReactNode;
  description?: ReactNode;
})

Source from the content-addressed store, hash-verified

332 * fill-aware icons (e.g. `<SerieIcon fill />` or a sized Lucide icon).
333 */
334function OPAnnotationRow({
335 icon,
336 title,
337 description,
338}: {
339 icon: ReactNode;
340 title: ReactNode;
341 description?: ReactNode;
342}) {
343 return (
344 <div className="flex items-start gap-2">
345 <div className="mt-0.5 flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-foreground text-foreground">
346 {icon}
347 </div>
348 <div className="col min-w-0 flex-1 gap-0.5">
349 <div className="truncate font-medium text-sm leading-tight">
350 {title}
351 </div>
352 {description && (
353 <div className="truncate text-muted-foreground text-xs leading-snug">
354 {description}
355 </div>
356 )}
357 </div>
358 </div>
359 );
360}
361
362export function OPTooltipCard({
363 children,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected