diff --git a/app/components/ui/icon-input.tsx b/app/components/ui/icon-input.tsx new file mode 100644 index 0000000..331ef2b --- /dev/null +++ b/app/components/ui/icon-input.tsx @@ -0,0 +1,22 @@ +import type { ReactNode } from 'react'; +import type { LucideIcon } from 'lucide-react'; +import { Input, type InputProps } from '~/components/ui/input'; +import { cn } from '~/lib/utils'; + +interface IconInputProps extends InputProps { + icon: LucideIcon; + trailing?: ReactNode; +} + +export function IconInput({ icon: Icon, trailing, className, ...props }: IconInputProps) { + return ( +