import { cn } from "@core/lib/utils"; import * as React from "react"; export interface CustomInputProps extends React.InputHTMLAttributes { variant?: "primary" | "info" | "error"; error?: string; label?: string; required?: boolean; } const CustomInput = React.forwardRef( ( { className, variant = "primary", error, label, disabled, required, ...props }, ref ) => { const finalVariant = error ? "error" : variant; return (
{label && ( )} {error && (

{error}

)}
); } ); CustomInput.displayName = "CustomInput"; export { CustomInput };