import * as React from "react"; import { cn } from "@/lib/utils"; import { LucideIcon } from "lucide-react"; export interface InputProps extends React.InputHTMLAttributes { startIcon?: LucideIcon; endIcon?: LucideIcon; } const Input = React.forwardRef( ({ className, type, startIcon, endIcon, ...props }, ref) => { const StartIcon = startIcon; const EndIcon = endIcon; return (
{StartIcon && (
)} {EndIcon && (
)}
); }, ); Input.displayName = "Input"; export { Input };