Chart Tooltip Card

Tooltip card for charts showing a title and label and value rows with tabular numbers. Drop it into any chart library's custom tooltip slot.

src/registry/ui/chart-tooltip-card.tsx/r/chart-tooltip-card.json

Installation#

bash
npx shadcn@latest add @minidev/chart-tooltip-card

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/chart-tooltip-card.json

Usage#

tsx
import { ChartTooltipCard } from "@/components/ui/chart-tooltip-card"

export function Example() {
  return (
    <ChartTooltipCard title="Sep 14" rows={[{ label: "Views", value: "12.4k" }, { label: "Signups", value: "318" }]} />
  )
}

API reference#

ChartTooltipCard props
PropTypeDefault
titlestring"March 2026"
rowsTooltipRow[]SAMPLE_ROWS
classNamestring-

Examples#

All chart components