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