16 lines
644 B
TypeScript
16 lines
644 B
TypeScript
import type * as React from "react";
|
|||
|
|
import { cn } from "../../lib/utils";
|
||
|
|
|
||
|
|
export function Input({ className, type, ...props }: React.InputHTMLAttributes<HTMLInputElement>) {
|
||
|
|
return (
|
||
|
|
<input
|
||
|
|
type={type}
|
||
|
|
className={cn(
|
||
|
|
"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|