Warcraft Input
warcraftcn/inputFreeComponent
A Warcraft-themed input component with fantasy styling
Live preview
live · rendered by the registry
Rendered by warcraftcn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.warcraftcn.com/r/input.jsonSource
1import type * as React from "react";23import { cn } from "@/lib/utils";45import "@/components/ui/warcraftcn/styles/warcraft.css";67function Input({ className, type, ...props }: React.ComponentProps<"input">) {8 return (9 <input10 className={cn(11 "fantasy min-w-0 bg-center bg-cover bg-no-repeat p-3 text-base shadow-xs outline-none transition-[color,box-shadow] selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",12 "border-solid wc-input-border [border-image-repeat:stretch]",13 "border-6 [border-image-slice:16_fill]",14 className15 )}16 data-slot="input"17 type={type}18 {...props}19 />20 );21}2223export { Input };
Files it writes
More from warcraftcn
All 16 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Warcraft Accordionaccordion | warcraftcn | Components | Free | 1 dep · 7 files | |
| Warcraft Avataravatar | warcraftcn | Components | Free | no deps · 7 files | |
| Warcraft Badgebadge | warcraftcn | Components | Free | no deps · 4 files | |
| Warcraft Buttonbutton | warcraftcn | Components | Free | no deps · 6 files | |
| Warcraft Cardcard | warcraftcn | Components | Free | no deps · 3 files | |
| Warcraft Checkboxcheckbox | warcraftcn | Components | Free | 1 dep · 12 files | |
| Warcraft Cursorcursor | warcraftcn | Components | Free | no deps · 6 files | |
| Warcraft Dropdown Menudropdown-menu | warcraftcn | Components | Free | 2 deps · 3 files |
