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-example

Area Chart Example

bklit-ui/area-chart-example
FreeExample

Composable area-chart demo for Open in v0

Install it

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

Source

registry/examples/area-chart.tsxbklit.com/r/area-chart-example.json
1"use client"
2
3// In your app (monorepo/npm): import { AreaChart, Area, Grid, XAxis, ChartTooltip } from "@bklitui/ui/charts"
4import { AreaChart, Area, Grid, XAxis, ChartTooltip } from "@/components/charts"
5
6import { curveNatural } from "@visx/curve";
7
8const chartData = [
9 { date: new Date("2024-01-01"), desktop: 186 },
10 { date: new Date("2024-02-01"), desktop: 305 },
11 { date: new Date("2024-03-01"), desktop: 237 },
12 { date: new Date("2024-04-01"), desktop: 73 },
13 { date: new Date("2024-05-01"), desktop: 209 },
14 { date: new Date("2024-06-01"), desktop: 214 },
15];
16
17export default function Component() {
18 return (
19 <main className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">
20 <div className="w-full max-w-3xl">
21 <AreaChart data={chartData} animationDuration={1100}>
22 <Grid horizontal />
23 <Area dataKey="desktop" curve={curveNatural} strokeWidth={2.5} fillOpacity={0.4} />
24 <XAxis />
25 <ChartTooltip />
26</AreaChart>
27 </div>
28 </main>
29 )
30}

What it pulls in

npm packages

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

Other registry items

  • @bklit/area-chart
  • @bklit/grid
  • @bklit/x-axis
  • @bklit/chart-tooltip

Files it writes

  • registry/examples/area-chart.tsx
  • registry/examples/area-chart-index.ts

Facts

Registry
bklit-ui
Type
registry:example
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-01
Last confirmed
today

Go to the source

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

More from bklit-ui

All 56 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Bar Chart Examplebar-chart-examplebklit-uiExamplesFree4 deps · 2 files
Candlestick Chart Examplecandlestick-chart-examplebklit-uiExamplesFree2 deps · 2 files
Choropleth Chart Examplechoropleth-chart-examplebklit-uiExamplesFree3 deps · 2 files
Composed Chart Examplecomposed-chart-examplebklit-uiExamplesFree3 deps · 2 files
Funnel Chart Examplefunnel-chart-examplebklit-uiExamplesFree2 deps · 2 files
Gauge Chart Examplegauge-chart-examplebklit-uiExamplesFree2 deps · 2 files
Heatmap Chart Exampleheatmap-chart-examplebklit-uiExamplesFree3 deps · 2 files
Line Chart Exampleline-chart-examplebklit-uiExamplesFree3 deps · 2 files
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