import { forwardRef, useRef } from 'react'; interface InputProps { value: string; onChange: (value: string) => void; onKeyDown?: React.KeyboardEventHandler; placeholder?: string; disabled?: boolean; className?: string; } export const Input = forwardRef( ({ value, onChange, onKeyDown, placeholder, disabled, className = '' }, ref) => { const innerRef = useRef(null); const combinedRef = ref || innerRef; return ( onChange(e.target.value)} onKeyDown={onKeyDown} placeholder={placeholder} disabled={disabled} /> ); }, ); Input.displayName = 'Input';