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-animation
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 Animation

bklit-ui/chart-animation
RemovedComponent

Shared motion helpers for chart enter transitions, clip reveals, and staggered animations

Install it

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

Source

src/charts/chart-reveal-clip.tsxbklit.com/r/chart-animation.json
1"use client";
2
3import type { Transition } from "motion/react";
4import { motion } from "motion/react";
5import { clipRevealTransition } from "./animation";
6
7export type ChartRevealClipMode = "reveal" | "conceal";
8
9export interface ChartRevealClipProps {
10 clipPathId: string;
11 height: number;
12 targetWidth: number;
13 enterTransition?: Transition;
14 /** Bumps when motion settings change to replay the reveal. */
15 revealEpoch: number;
16 /** Extra inset around the clip rect so edge glyphs are not cut off. */
17 padding?: number;
18 /** When false, clip stays at full width (no grow animation). */
19 animating?: boolean;
20 /** Reveal grows 0 → full; conceal shrinks full → 0 (ready → loading). */
21 mode?: ChartRevealClipMode;
22 /** Called when a conceal animation finishes. */
23 onComplete?: () => void;
24}
25
26/**
27 * Left-to-right clip reveal for cartesian series.
28 * Grows clip rect width from 0 → full (true LTR; scaleX is avoided — it reveals from center).
29 */
30export function ChartRevealClip({
31 clipPathId,
32 height,
33 targetWidth,
34 enterTransition,
35 revealEpoch,
36 padding = 0,
37 animating = true,
38 mode = "reveal",
39 onComplete,
40}: ChartRevealClipProps) {
41 const transition = clipRevealTransition(enterTransition);
42 const paddedWidth = Math.max(0, targetWidth + padding * 2);
43 const paddedHeight = height + padding * 2;
44
45 if (!animating) {
46 return (
47 <clipPath id={clipPathId}>
48 <rect
49 height={paddedHeight}
50 width={paddedWidth}
51 x={-padding}
52 y={-padding}
53 />
54 </clipPath>
55 );
56 }
57
58 if (mode === "conceal") {
59 // Mirror the LTR reveal: advance the clip's left edge rightward while width
60 // shrinks (same geometry as `LineLoadingPulseStroke` exit half-cycle).
61 const rightEdge = -padding + paddedWidth;
62
63 return (
64 <clipPath id={clipPathId}>
65 <motion.rect
66 animate={{ width: 0, x: rightEdge }}
67 height={paddedHeight}
68 initial={{ width: paddedWidth, x: -padding }}
69 key={`conceal-${revealEpoch}`}
70 onAnimationComplete={() => onComplete?.()}
71 transition={transition}
72 y={-padding}
73 />
74 </clipPath>
75 );
76 }
77
78 return (
79 <clipPath id={clipPathId}>
80 <motion.rect
81 animate={{ width: paddedWidth }}
82 height={paddedHeight}
83 initial={{ width: 0 }}
84 key={`reveal-${revealEpoch}`}
85 transition={transition}
86 width={paddedWidth}
87 x={-padding}
88 y={-padding}
89// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • src/charts/animation.ts
  • src/charts/motion-utils.ts
  • src/charts/use-mount-progress.ts
  • src/charts/use-enter-complete.ts
  • src/charts/chart-reveal-clip.tsx
  • src/charts/static-chart-preview-context.tsx
  • src/charts/chart-defs.ts

Facts

Registry
bklit-ui
Type
registry:component
Access
Free
Files written
7
Licence
MIT
In the index
at or before 2026-08-02
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