amankaushik481

Chart Tooltip Card

Cards

About

A small raised tooltip card for charts that shows a title with label-value rows using tabular numbers, meant to drop into a chart library's custom tooltip/hover slot.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Chart Tooltip Card to your project and fits it to your theme.

Code

How Chart Tooltip Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function ChartTooltipCardDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-bg p-10">
      <ChartTooltipCard
        title="March 2026"
        rows={[
          { label: "Revenue", value: "$48,200" },
          { label: "Collected", value: "$41,650" },
          { label: "Outstanding", value: "$6,550" },
          { label: "Invoices", value: "36" },
        ]}
      />
    </div>
  );
}

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198