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

8-bit Chart Bar

8bitcn/chart-bar
FreeBlock

A simple 8-bit chart bar component

Install it

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

Source

components/ui/8bit/blocks/chart-bar.tsxwww.8bitcn.com/r/chart-bar.json
1"use client";
2
3import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";
4
5import {
6 type ChartConfig,
7 ChartContainer,
8 ChartTooltip,
9 ChartTooltipContent,
10} from "@/components/ui/8bit/chart";
11
12export const description = "A multiple bar chart";
13
14const chartData = [
15 { month: "January", desktop: 186, mobile: 80 },
16 { month: "February", desktop: 305, mobile: 200 },
17 { month: "March", desktop: 237, mobile: 120 },
18 { month: "April", desktop: 73, mobile: 190 },
19 { month: "May", desktop: 209, mobile: 130 },
20 { month: "June", desktop: 214, mobile: 140 },
21];
22
23const chartConfig = {
24 desktop: {
25 label: "Desktop",
26 color: "var(--chart-1)",
27 },
28 mobile: {
29 label: "Mobile",
30 color: "var(--chart-2)",
31 },
32} satisfies ChartConfig;
33
34export default function ChartBarMultiple() {
35 return (
36 <ChartContainer config={chartConfig}>
37 <BarChart data={chartData}>
38 <CartesianGrid vertical={false} />
39 <XAxis
40 dataKey="month"
41 tickLine={false}
42 tickMargin={10}
43 axisLine={false}
44 tickFormatter={(value) => value.slice(0, 3)}
45 />
46 <ChartTooltip
47 cursor={false}
48 content={<ChartTooltipContent indicator="dot" />}
49 />
50 <Bar dataKey="desktop" fill="var(--color-desktop)" />
51 <Bar dataKey="mobile" fill="var(--color-mobile)" />
52 </BarChart>
53 </ChartContainer>
54 );
55}

What it pulls in

Other registry items

  • chart

Files it writes

  • components/ui/8bit/blocks/chart-bar.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-04
Last confirmed
today

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 Area Stepchart-area-step8bitcnBlocksFreeno 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