BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blacksite/chart-tooltip

Chart tooltip

blacksite/chart-tooltip
FreeComponent

Shared tooltip primitive for Recharts-based charts.

Install it

npx shadcn@latest add https://blacksite.sh/r/chart-tooltip.json

Source

registry/blacksite/charts/chart-tooltip.tsxblacksite.sh/r/chart-tooltip.json
1"use client";
2
3import * as React from "react";
4
5interface ChartTooltipPayloadItem {
6 dataKey: string;
7 name: string;
8 value: number | string;
9 color: string;
10}
11
12interface ChartTooltipProps {
13 active?: boolean;
14 payload?: ChartTooltipPayloadItem[];
15 label?: string;
16}
17
18const ChartTooltip = React.memo(function ChartTooltip({
19 active,
20 payload,
21 label,
22}: ChartTooltipProps) {
23 if (!active || !payload?.length) return null;
24 return (
25 <div className="border-border-strong bg-popover rounded-sm border px-2 py-1.5 shadow-[var(--shadow-panel)]">
26 <div className="text-mono text-foreground-muted text-[10px] tracking-[0.08em] uppercase">
27 {label}
28 </div>
29 <div className="mt-1 flex flex-col gap-0.5">
30 {payload.map((entry) => (
31 <div key={entry.dataKey} className="flex items-center gap-1.5">
32 <span className="size-1.5 rounded-full" style={{ backgroundColor: entry.color }} />
33 <span className="text-mono text-foreground text-[11px]">
34 {entry.name}: <span className="text-foreground-muted">{entry.value}</span>
35 </span>
36 </div>
37 ))}
38 </div>
39 </div>
40 );
41});
42
43export { ChartTooltip };
44export type { ChartTooltipPayloadItem, ChartTooltipProps };

Facts

Registry
blacksite
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

blacksite.sh refrakts/blacksite-ui on GitHub Raw registry item This item as JSON

More from blacksite

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
App headerapp-headerblacksiteComponentsFreeno deps
BadgebadgeblacksiteComponentsFreeno deps
Bar chartbar-chartblacksiteComponentsFreeno deps
ButtonbuttonblacksiteComponentsFreeno deps
CardcardblacksiteComponentsFreeno deps
Data listdata-listblacksiteComponentsFreeno deps
Gantt timelinegantt-timelineblacksiteComponentsFreeno deps
InputinputblacksiteComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex