BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/command

8-bit Command

8bitcn/command
FreeComponent

A simple 8-bit command component

Install it

npx shadcn@latest add https://www.8bitcn.com/r/command.json

Source

components/ui/8bit/command.tsxwww.8bitcn.com/r/command.json · first 6 KB
1"use client";
2
3import { Command as CommandPrimitive } from "cmdk";
4
5import { cn } from "@/lib/utils";
6
7import { Separator } from "@/components/ui/8bit/separator";
8import {
9 Command as ShadcnCommand,
10 CommandEmpty as ShadcnCommandEmpty,
11 CommandGroup as ShadcnCommandGroup,
12 CommandItem as ShadcnCommandItem,
13 CommandList as ShadcnCommandList,
14 CommandSeparator as ShadcnCommandSeparator,
15 CommandShortcut as ShadcnCommandShortcut,
16} from "@/components/ui/command";
17import {
18 Dialog,
19 DialogContent,
20 DialogDescription,
21 DialogHeader,
22 DialogTitle,
23} from "@/components/ui/dialog";
24
25import "@/components/ui/8bit/styles/retro.css";
26
27function Command({
28 className,
29 ...props
30}: React.ComponentProps<typeof CommandPrimitive>) {
31 return (
32 <div className={cn("relative !p-0", className)}>
33 <ShadcnCommand
34 data-slot="command"
35 className={cn(
36 "bg-popover text-popover-foreground flex h-full !w-full flex-col overflow-hidden rounded-md",
37 "retro",
38 className
39 )}
40 {...props}
41 />
42
43 <div className="absolute -top-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring" />
44 <div className="absolute -top-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring" />
45 <div className="absolute -bottom-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring" />
46 <div className="absolute -bottom-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring" />
47 <div className="absolute top-0 left-0 size-1.5 bg-foreground dark:bg-ring" />
48 <div className="absolute top-0 right-0 size-1.5 bg-foreground dark:bg-ring" />
49 <div className="absolute bottom-0 left-0 size-1.5 bg-foreground dark:bg-ring" />
50 <div className="absolute bottom-0 right-0 size-1.5 bg-foreground dark:bg-ring" />
51 <div className="absolute top-1.5 -left-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring" />
52 <div className="absolute top-1.5 -right-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring" />
53 <div className="absolute bottom-1.5 -left-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring" />
54 <div className="absolute bottom-1.5 -right-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring" />
55 </div>
56 );
57}
58
59function CommandDialog({
60 title = "Command Palette",
61 description = "Search for a command to run...",
62 children,
63 ...props
64}: React.ComponentProps<typeof Dialog> & {
65 title?: string;
66 description?: string;
67}) {
68 return (
69 <Dialog {...props}>
70 <DialogContent className="overflow-hidden p-0">
71// … truncated

What it pulls in

Other registry items

  • command

Files it writes

  • components/ui/8bit/command.tsx
  • components/ui/8bit/separator.tsx
  • components/ui/8bit/styles/retro.css

Facts

Registry
8bitcn
Type
registry:component
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 Accordionaccordion8bitcnComponentsFreeno deps · 2 files
8-bit Alertalert8bitcnComponentsFreeno deps · 2 files
8-bit Alert Dialogalert-dialog8bitcnComponentsFreeno deps · 2 files
8-bit Avataravatar8bitcnComponentsFreeno deps · 2 files
8-bit Badgebadge8bitcnComponentsFreeno deps · 2 files
8-bit Breadcrumbbreadcrumb8bitcnComponentsFreeno deps · 2 files
8-bit Buttonbutton8bitcnComponentsFreeno deps · 2 files
8-bit Button Groupbutton-group8bitcnComponentsFreeno deps · 4 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