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/area-chart
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.

Area Chart

bklit-ui/area-chart
RemovedComponent

A composable area chart with gradient fills and animations

Install it

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

Source

src/charts/area-chart.tsxbklit.com/r/area-chart.json · first 6 KB
1"use client";
2
3import { ParentSize } from "@visx/responsive";
4import type { Transition } from "motion/react";
5import {
6 Children,
7 type CSSProperties,
8 isValidElement,
9 type ReactNode,
10 useCallback,
11 useMemo,
12 useRef,
13 useState,
14} from "react";
15import { cn } from "@/lib/utils";
16import { Area, type AreaProps } from "./area";
17import type { LineConfig, Margin } from "./chart-context";
18import { ChartLoadingLabel } from "./chart-loading-label";
19import {
20 type ChartPhase,
21 type ChartStatus,
22 DEFAULT_CHART_STATUS,
23 DEFAULT_Y_DOMAIN_TWEEN_MS,
24 resolveRestingChartPhase,
25} from "./chart-phase";
26import { PatternArea } from "./pattern-area";
27import { TimeSeriesChartInner } from "./time-series-chart-shell";
28
29export interface AreaChartProps {
30 /** Data array - each item should have a date field and numeric values */
31 data: Record<string, unknown>[];
32 /** Key in data for the x-axis (date). Default: "date" */
33 xDataKey?: string;
34 /** Chart margins */
35 margin?: Partial<Margin>;
36 /** Animation duration in milliseconds. Default: 1100 */
37 animationDuration?: number;
38 /** CSS easing for clip-reveal. Default: cubic-bezier(0.85, 0, 0.15, 1) */
39 animationEasing?: string;
40 /** Motion enter transition (spring or cubic-bezier tween). */
41 enterTransition?: Transition;
42 /** Signature of motion URL state — triggers reveal replay when it changes. */
43 revealSignature?: string;
44 /** Aspect ratio as "width / height". Default: "2 / 1" */
45 aspectRatio?: string;
46 /** Additional class name for the container */
47 className?: string;
48 /** Loading vs ready — drives chart phase and loading chrome. Default: `"ready"`. */
49 status?: ChartStatus;
50 /** Centered shimmer label while loading. */
51 loadingLabel?: string;
52 /** Animate y-domain over this duration (ms) on status transitions. Default: 500. */
53 yDomainTweenDuration?: number;
54 /** Animate y-domain when status or target domain changes. Default: true */
55 yDomainTween?: boolean;
56 /** Visible x-domain for brush zoom. */
57 xDomain?: [Date, Date];
58 /** Full dataset length for x-scale padding when `xDomain` is set. */
59 xDomainSlotCount?: number;
60 /** Tween y-domain when brush changes the visible x-range. Default: false */
61 tweenYDomainOnXDomainChange?: boolean;
62 /** Inline container styles (e.g. fixed height for brush strip). */
63 style?: CSSProperties;
64 /** Fires when the internal chart phase changes (e.g. OG capture readiness). */
65 onPhaseChange?: (phase: ChartPhase) => void;
66// … truncated

What it pulls in

npm packages

  • @visx/curve@4.0.1-alpha.0
  • @visx/gradient@4.0.1-alpha.0
  • @visx/shape@4.0.1-alpha.0
  • motion

Other registry items

  • @bklit/chart-context
  • @bklit/chart-animation
  • @bklit/chart-series
  • @bklit/grid
  • @bklit/x-axis
  • @bklit/chart-tooltip
  • @bklit/shimmering-text
  • @bklit/utils

Files it writes

  • src/charts/area-chart.tsx
  • src/charts/time-series-chart-shell.tsx
  • src/charts/reference-area-registration-context.tsx
  • src/charts/projection-config.ts
  • src/charts/projection-utils.ts
  • src/charts/chart-child-passthrough.ts
  • src/charts/series-bar-layout.ts
  • src/charts/area.tsx
  • src/charts/area-chart-loading.tsx
  • src/charts/line-loading-pulse.tsx
  • src/charts/loading-sweep.tsx
  • src/charts/line-loading-timing.ts
  • src/charts/chart-loading-label.tsx
  • src/charts/pattern-area.tsx

Facts

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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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