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/stat-card-line-01
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.

Stat Card Line

bklit-ui/stat-card-line-01
RemovedBlock

Sessions stat card with line sparkline, overlaid NumberFlow, and trend badge

Install it

npx shadcn@latest add https://bklit.com/r/stat-card-line-01.json

Source

registry/blocks/stat-card-line-01/components/stat-card-line.tsxbklit.com/r/stat-card-line-01.json
1"use client";
2
3import { ChartStatFlow, Line, LineChart } from "@/components/charts";
4import { curveBasis } from "@visx/curve";
5import { useState } from "react";
6import {
7 Card,
8 CardAction,
9 CardContent,
10 CardHeader,
11 CardTitle,
12} from "@/components/ui/card";
13import { sessionsSeries, sessionsStats } from "../data/sessions-series";
14import {
15 StatCardChart,
16 statCardLabelClassName,
17 statCardValueClassName,
18} from "./stat-card-chart";
19import {
20 formatStatCardWeekday,
21 StatCardHoverBridge,
22 type StatCardHoverState,
23} from "./stat-card-hover-bridge";
24import { TrendBadge } from "./trend-badge";
25
26export function StatCardLine() {
27 const [hover, setHover] = useState<StatCardHoverState>({
28 value: null,
29 label: null,
30 trend: null,
31 });
32 const average = Math.round(sessionsStats.average);
33 const displayValue = hover.value === null ? average : Math.round(hover.value);
34 const displayLabel = hover.label ?? "Avg";
35 const displayTrend = hover.trend ?? sessionsStats.trend;
36
37 return (
38 <Card className="w-full gap-0 py-0">
39 <CardHeader className="px-4 py-3">
40 <CardTitle>Active Sessions</CardTitle>
41 <CardAction>
42 <TrendBadge value={displayTrend} />
43 </CardAction>
44 </CardHeader>
45
46 <CardContent className="px-4 pt-2 pb-3">
47 <StatCardChart size="md">
48 <div className="pointer-events-none absolute right-4 bottom-4 z-10 flex flex-col items-end text-right">
49 <ChartStatFlow
50 label={displayLabel}
51 labelClassName={statCardLabelClassName}
52 value={displayValue}
53 valueClassName={statCardValueClassName}
54 />
55 </div>
56
57 <LineChart
58 aspectRatio="2.5 / 1"
59 className="w-full"
60 data={sessionsSeries}
61 margin={{ top: 0, right: 0, bottom: 0, left: 0 }}
62 >
63 <StatCardHoverBridge
64 dataKey="value"
65 formatLabel={formatStatCardWeekday}
66 onHoverChange={setHover}
67 />
68 <Line
69 curve={curveBasis}
70 dataKey="value"
71 showHighlight
72 stroke="var(--chart-3)"
73 strokeWidth={2.5}
74 />
75 </LineChart>
76 </StatCardChart>
77 </CardContent>
78 </Card>
79 );
80}

What it pulls in

npm packages

  • @visx/curve@4.0.1-alpha.0
  • @number-flow/react
  • @central-icons-react/all

Other registry items

  • @bklit/line-chart
  • @bklit/chart-stat-flow
  • card
  • badge

Files it writes

  • registry/blocks/stat-card-line-01/components/stat-card-line.tsx
  • registry/blocks/stat-card-line-01/components/stat-card-chart.tsx
  • registry/blocks/stat-card-line-01/components/stat-card-hover-bridge.tsx
  • registry/blocks/stat-card-line-01/components/trend-badge.tsx
  • registry/blocks/stat-card-line-01/data/sessions-series.ts
  • registry/examples/stat-card-line-01-index.ts

Facts

Registry
bklit-ui
Type
registry:block
Access
Free
Files written
6
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

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