BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/chart-area-step

8-bit Chart Area Step

8bitcn/chart-area-step
FreeBlock

A simple 8-bit chart area step component

Install it

npx shadcn@latest add https://www.8bitcn.com/r/chart-area-step.json

Source

components/ui/8bit/blocks/chart-area-step.tsxwww.8bitcn.com/r/chart-area-step.json
1"use client";
2
3import { Activity } from "lucide-react";
4import { Area, AreaChart, CartesianGrid, XAxis } from "recharts";
5
6import {
7 type ChartConfig,
8 ChartContainer,
9 ChartTooltip,
10 ChartTooltipContent,
11} from "@/components/ui/8bit/chart";
12
13export const description = "A step area chart";
14
15const chartData = [
16 { month: "January", desktop: 99 },
17 { month: "February", desktop: 204 },
18 { month: "March", desktop: 180 },
19 { month: "April", desktop: 120 },
20 { month: "May", desktop: 180 },
21 { month: "June", desktop: 42 },
22];
23
24const chartConfig = {
25 desktop: {
26 label: "Desktop",
27 color: "var(--chart-1)",
28 icon: Activity,
29 },
30} satisfies ChartConfig;
31
32export default function ChartAreaStep() {
33 return (
34 <ChartContainer config={chartConfig}>
35 <AreaChart
36 data={chartData}
37 margin={{
38 left: 20,
39 right: 20,
40 }}
41 >
42 <CartesianGrid vertical={false} />
43 <XAxis
44 dataKey="month"
45 tickLine={false}
46 axisLine={false}
47 tickMargin={8}
48 tickFormatter={(value) => value.slice(0, 3)}
49 />
50 <ChartTooltip
51 cursor={false}
52 content={<ChartTooltipContent hideLabel />}
53 />
54 <Area
55 dataKey="desktop"
56 type="step"
57 fill="var(--color-desktop)"
58 stroke="var(--color-desktop)"
59 activeDot={{
60 fill: "var(--chart-active-dot)",
61 }}
62 />
63 </AreaChart>
64 </ChartContainer>
65 );
66}

What it pulls in

Other registry items

  • chart

Files it writes

  • components/ui/8bit/blocks/chart-area-step.tsx
  • components/ui/8bit/chart.tsx
  • components/ui/8bit/styles/retro.css

Facts

Registry
8bitcn
Type
registry:block
Access
Free
Files written
3
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

www.8bitcn.com Raw registry item This item as JSON

More from 8bitcn

All 121 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
8-bit Advanced 1advanced18bitcnBlocksFreeno deps · 3 files
8-bit Advanced 2advanced28bitcnBlocksFreeno deps · 5 files
8-bit Advanced 3advanced38bitcnBlocksFreeno deps · 6 files
8-bit Audio Settingsaudio-settings8bitcnBlocksFree2 deps · 7 files
8-bit Chapter Introchapter-intro8bitcnBlocksFreeno deps · 3 files
8-bit Character Sheetcharacter-sheet8bitcnBlocksFreeno deps · 9 files
8-bit Chartchart8bitcnBlocksFreeno deps · 3 files
8-bit Chart Barchart-bar8bitcnBlocksFreeno deps · 3 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