import * as React from "react"; import { LucideIcon } from "lucide-react"; import { cn } from "../../lib/utils"; interface InputProps extends React.ComponentProps<"input"> { iconSrc?: string; iconComponent?: LucideIcon | string; iconProps?: { size?: number; color?: string; strokeWidth?: number; className?: string; }; } const Input = React.forwardRef( ( { className, type, dir, iconSrc, iconComponent: IconComponent, iconProps, ...props }, ref ) => { return (
{(iconSrc || IconComponent) && (
{iconSrc ? ( ) : IconComponent ? ( ) : null}
)}
); } ); Input.displayName = "Input"; export { Input };