MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / Input

Function Input

components/ui/input.tsx:6–18  ·  view source on GitHub ↗
({ className, type, ...props }: React.ComponentProps<"input">)

Source from the content-addressed store, hash-verified

4import { cn } from "@/lib/utils";
5
6function Input({ className, type, ...props }: React.ComponentProps<"input">) {
7 return (
8 <InputPrimitive
9 type={type}
10 data-slot="input"
11 className={cn(
12 "dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors file:h-6 file:text-xs file:font-medium focus-visible:ring-1 aria-invalid:ring-1 md:text-xs file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
13 className
14 )}
15 {...props}
16 />
17 );
18}
19
20export { Input };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected