Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
19 lines
620 B
TypeScript
19 lines
620 B
TypeScript
import * as React from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export const Input = React.forwardRef<
|
|
HTMLInputElement,
|
|
React.InputHTMLAttributes<HTMLInputElement>
|
|
>(({ className, type, ...props }, ref) => (
|
|
<input
|
|
ref={ref}
|
|
type={type}
|
|
className={cn(
|
|
"focus-ring flex h-9 w-full rounded-md border border-border/80 bg-card/55 px-3 py-1 text-sm backdrop-blur-sm transition-colors placeholder:text-muted-foreground hover:border-border focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
));
|
|
Input.displayName = "Input";
|