"use client"; import React from "react"; interface InputFieldProps extends React.InputHTMLAttributes { label?: string; name?: string; error?: string; suffix?: string; // Add suffix prop } const InputField = React.forwardRef(({ label, name, error, suffix, className = "", ...props }, ref) => { return (
{/* Label */} {label && ( )} {/* Input with optional suffix */}
{/* Suffix */} {suffix && (
{suffix}
)}
{/* Error */} {error &&

{error}

} {/* Placeholder styling */}
); }); InputField.displayName = "InputField"; export default InputField;