interface FloatingInputProps { id: string; label: string; type: 'text' | 'password'; value: string; placeholder: string; onChange: (value: string) => void; suggestions?: string[]; containerClassName?: string; labelClassName?: string; inputClassName?: string; } export function FloatingInput({ id, label, type, value, placeholder, onChange, suggestions, containerClassName = '', labelClassName = '', inputClassName = '', }: FloatingInputProps) { const datalistId = suggestions && suggestions.length > 0 ? `${id}__datalist` : undefined; return (
onChange(e.target.value)} placeholder={placeholder} className={`w-full px-4 py-4 bg-bg-secondary/50 rounded-2xl text-sm text-text-primary placeholder-text-secondary/40 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:bg-bg-secondary/70 transition-all ${inputClassName}`.trim()} /> {datalistId ? ( {suggestions!.map((item) => ( ) : null}
); }