diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx index 8a7a9340..dba310dc 100644 --- a/apps/web/src/components/ui/input.tsx +++ b/apps/web/src/components/ui/input.tsx @@ -20,6 +20,30 @@ const Input = React.forwardRef( ); }, ); -Input.displayName = "Input"; -export { Input }; +export interface InputWithIconProps + extends React.InputHTMLAttributes { + icon: React.ReactNode; +} + +const InputWithIcon = React.forwardRef( + ({ className, type, icon, ...props }, ref) => { + return ( +
+ {icon} + +
+ ); + }, +); +InputWithIcon.displayName = "Input"; + +export { Input, InputWithIcon };