'use client'; import React, { forwardRef, useId } from 'react'; interface InputProps extends React.InputHTMLAttributes { label?: string; error?: string; icon?: React.ReactNode; } export const Input = forwardRef( ({ label, error, icon, className = '', id, ...props }, ref) => { const genId = useId(); const inputId = id ?? genId; return (
{label && ( )}
{icon && (
{icon}
)}
{error && (

{error}

)}
); } ); Input.displayName = 'Input';