BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/bklit-ui/chart-series
This component no longer exists. It was in bklit-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-10 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Chart Series Layer

bklit-ui/chart-series
RemovedComponent

Shared line and area series rendering helpers (paths, markers, highlights, dash tails)

Install it

npx shadcn@latest add https://bklit.com/r/chart-series.json

Source

src/charts/highlight-segment.tsxbklit.com/r/chart-series.json
1"use client";
2
3import { type MotionValue, motion } from "motion/react";
4import { type RefObject, useId } from "react";
5
6// Hover-highlight overlay: re-strokes the base path `d`, clipped to a vertical
7// band whose x/width spring to track the hovered point, so only the segment
8// around the dot shows brighter. The band comes from `useHighlightSegment`;
9// because the bright stroke reuses the base `d`, it follows whatever curve is
10// drawn (see `highlight-segment-bounds.ts` for the band-extent caveat).
11
12export interface HighlightSegmentProps {
13 /** Ref to the rendered base stroke `<path>` — its `d` is re-used verbatim. */
14 pathRef: RefObject<SVGPathElement | null>;
15 /** Whether to render (caller gates on showHighlight + active + loaded). */
16 visible: boolean;
17 stroke: string;
18 strokeWidth: number;
19 /** Plot height — the clip band spans it fully. */
20 height: number;
21 /** Spring-eased left edge of the clip band (px). */
22 x: MotionValue<number>;
23 /** Spring-eased width of the clip band (px). */
24 width: MotionValue<number>;
25}
26
27export function HighlightSegment({
28 pathRef,
29 visible,
30 stroke,
31 strokeWidth,
32 height,
33 x,
34 width,
35}: HighlightSegmentProps) {
36 const clipId = useId();
37 if (!(visible && pathRef.current)) {
38 return null;
39 }
40 return (
41 <>
42 <defs>
43 <clipPath id={clipId}>
44 <motion.rect height={height} width={width} x={x} y={0} />
45 </clipPath>
46 </defs>
47 <motion.path
48 animate={{ opacity: 1 }}
49 clipPath={`url(#${clipId})`}
50 d={pathRef.current.getAttribute("d") || ""}
51 exit={{ opacity: 0 }}
52 fill="none"
53 initial={{ opacity: 0 }}
54 stroke={stroke}
55 strokeLinecap="round"
56 strokeWidth={strokeWidth}
57 transition={{ duration: 0.4, ease: "easeInOut" }}
58 />
59 </>
60 );
61}
62
63HighlightSegment.displayName = "HighlightSegment";
64
65export default HighlightSegment;

What it pulls in

npm packages

  • @visx/shape@4.0.1-alpha.0
  • d3-shape
  • motion

Other registry items

  • @bklit/chart-context
  • @bklit/chart-animation
  • @bklit/chart-tooltip

Files it writes

  • src/charts/path-stroke-utils.ts
  • src/charts/series-path-utils.ts
  • src/charts/use-animated-series-path.ts
  • src/charts/highlight-segment-bounds.ts
  • src/charts/highlight-segment.tsx
  • src/charts/dash-tail-stroke.tsx
  • src/charts/series-dash-tail-overlay.tsx
  • src/charts/series-highlight-layer.tsx
  • src/charts/chart-legend-hover.tsx
  • src/charts/series-hover-dim.tsx
  • src/charts/series-point-marker.tsx
  • src/charts/series-markers.tsx
  • src/charts/use-highlight-segment.ts
  • src/charts/area-gradient-defs.tsx
  • src/charts/fade-edges.ts

Facts

Registry
bklit-ui
Type
registry:component
Access
Free
Files written
15
Licence
MIT
In the index
at or before 2026-08-03
Last confirmed
9 days ago

Go to the source

bklit.com bklit/bklit-ui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex