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

{error}

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