"use client"; import { forwardRef } from "react"; import { cn } from "@/lib/utils"; interface InputProps extends React.InputHTMLAttributes { label?: string; error?: string; icon?: React.ReactNode; } export const Input = forwardRef( ({ className, label, error, icon, id, ...props }, ref) => { return (
{label && ( )}
{icon && (
{icon}
)}
{error &&

{error}

}
); } ); Input.displayName = "Input";