// src/components/ui/Input.tsx import React, { forwardRef } 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 inputId = id || `input-${Math.random().toString(36).slice(2, 9)}`; return (
{label && ( )}
{icon && (
{icon}
)}
{error && (

{error}

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