Branchwell

AI Resource Pro / website · airesourcepro.com / src / components / ui / input.tsx

1import * as React from "react"
2
3import { cn } from "@/lib/utils"
4
5export interface InputProps
6 extends React.InputHTMLAttributes<HTMLInputElement> {
7 // Add any additional props here if needed
8}
9
10const Input = React.forwardRef<HTMLInputElement, InputProps>(
11 ({ className, type, ...props }, ref) => {
12 return (
13 <input
14 type={type}
15 className={cn(
16 "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm 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 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
17 className
18 )}
19 ref={ref}
20 {...props}
21 />
22 )
23 }
24)
25Input.displayName = "Input"
26
27export { Input }