Files
ProxMenux/AppImage/components/ui/input.tsx

23 lines
818 B
TypeScript
Raw Normal View History

2025-09-28 23:09:31 +02:00
import * as React from "react"
2025-09-28 20:28:35 +02:00
2025-09-28 23:09:31 +02:00
import { cn } from "@/lib/utils"
2025-09-28 20:28:35 +02:00
2025-09-28 23:09:31 +02:00
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
const Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, ...props }, ref) => {
2025-09-28 20:28:35 +02:00
return (
<input
type={type}
className={cn(
2025-11-04 09:14:29 +01:00
"flex h-10 w-full rounded-lg border border-input bg-background px-4 py-2 text-sm shadow-sm transition-all 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 hover:border-ring/50",
2025-09-28 20:28:35 +02:00
className,
)}
2025-09-28 23:09:31 +02:00
ref={ref}
2025-09-28 20:28:35 +02:00
{...props}
/>
)
2025-09-28 23:09:31 +02:00
})
Input.displayName = "Input"
2025-09-28 20:28:35 +02:00
export { Input }