BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/input

8-bit Input

8bitcn/input
FreeComponent

A simple 8-bit input component

Install it

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

Source

components/ui/8bit/input.tsxwww.8bitcn.com/r/input.json
1import { type VariantProps, cva } from "class-variance-authority";
2
3import { cn } from "@/lib/utils";
4
5import { Input as ShadcnInput } from "@/components/ui/input";
6
7import "@/components/ui/8bit/styles/retro.css";
8
9export const inputVariants = cva("", {
10 variants: {
11 font: {
12 normal: "",
13 retro: "retro",
14 },
15 },
16 defaultVariants: {
17 font: "retro",
18 },
19});
20
21export interface BitInputProps
22 extends React.InputHTMLAttributes<HTMLInputElement>,
23 VariantProps<typeof inputVariants> {
24 asChild?: boolean;
25}
26
27function Input({ ...props }: BitInputProps) {
28 const { className, font } = props;
29
30 return (
31 <div
32 className={cn(
33 "relative border-y-6 border-foreground dark:border-ring !p-0 flex items-center",
34 className
35 )}
36 >
37 <ShadcnInput
38 {...props}
39 className={cn(
40 "rounded-none ring-0 !w-full",
41 font !== "normal" && "retro",
42 className
43 )}
44 />
45
46 <div
47 className="absolute inset-0 border-x-6 -mx-1.5 border-foreground dark:border-ring pointer-events-none"
48 aria-hidden="true"
49 />
50 </div>
51 );
52}
53
54export { Input };

What it pulls in

Other registry items

  • input

Files it writes

  • components/ui/8bit/input.tsx
  • components/ui/8bit/styles/retro.css

Facts

Registry
8bitcn
Type
registry:component
Access
Free
Files written
2
Licence
the repository states none
First indexed
2026-08-01
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