BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/game-hero1

8-bit game-hero1

8bitcn/game-hero1
FreeBlock

Health bar hero with progress indicator.

Install it

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

Source

components/ui/8bit/blocks/game-hero1.tsxwww.8bitcn.com/r/game-hero1.json
1import Link from "next/link";
2
3import { cn } from "@/lib/utils";
4
5import { Badge } from "@/components/ui/8bit/badge";
6import { Button } from "@/components/ui/8bit/button";
7import { Progress } from "@/components/ui/8bit/progress";
8
9import "@/components/ui/8bit/styles/retro.css";
10
11interface GameHero1Props {
12 actions?: Array<{
13 href?: string;
14 label: string;
15 variant?: "default" | "destructive" | "ghost" | "outline" | "secondary";
16 }>;
17 className?: string;
18 description?: string;
19 xpLabel?: string;
20 xpValue?: number;
21 subtitle?: string;
22 title: string;
23}
24
25export default function GameHero1({
26 title = "LAUNCH SEQUENCE INITIATED",
27 subtitle = "v2.0 — Now Live",
28 description = "Your product is ready for battle. Ship it before the competition respawns.",
29 actions = [
30 { label: "DEPLOY NOW", variant: "default", href: "/docs" },
31 { label: "VIEW ARSENAL", variant: "outline", href: "/v2" },
32 ],
33 xpLabel = "XP to Next Level",
34 xpValue = 72,
35 className,
36}: GameHero1Props) {
37 return (
38 <section
39 className={cn("relative w-full px-4 py-16 md:py-24", className)}
40 >
41 <div className="mx-auto max-w-2xl text-center">
42 {subtitle && (
43 <div className="mb-6">
44 <Badge >{subtitle}</Badge>
45 </div>
46 )}
47
48 <h1 className="retro mb-4 font-bold text-3xl tracking-tight md:text-5xl">
49 {title}
50 </h1>
51
52 {description && (
53 <p className="mx-auto mb-8 max-w-lg text-muted-foreground retro text-[9px] leading-relaxed">
54 {description}
55 </p>
56 )}
57
58 {actions.length > 0 && (
59 <div className="mb-8 flex flex-wrap justify-center gap-4">
60 {actions.map((action) =>
61 action.href ? (
62 <Button asChild key={action.label} variant={action.variant}>
63 <Link href={action.href}>{action.label}</Link>
64 </Button>
65 ) : (
66 <Button key={action.label} variant={action.variant}>
67 {action.label}
68 </Button>
69 ),
70 )}
71 </div>
72 )}
73
74 {/* Health bar */}
75 <div className="mx-auto max-w-sm">
76 <div className="retro mb-2 flex justify-between text-[10px]">
77 <span>{xpLabel}</span>
78 <span>{xpValue}%</span>
79 </div>
80 <Progress className="h-3" value={xpValue} />
81 </div>
82 </div>
83 </section>
84 );
85}

What it pulls in

Other registry items

  • badge
  • button
  • progress

Files it writes

  • components/ui/8bit/blocks/game-hero1.tsx
  • components/ui/8bit/styles/retro.css
  • components/ui/8bit/badge.tsx
  • components/ui/8bit/button.tsx
  • components/ui/8bit/progress.tsx

Facts

Registry
8bitcn
Type
registry:block
Access
Free
Files written
5
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 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