import { useState } from 'react' import type { InputHTMLAttributes } from 'react' // PasswordInput renders a password field with an inline visibility toggle so // users can verify what they typed before submitting. The toggle is a // presentation-only button (type=button) nested in a relative wrapper; it // never submits the surrounding form. interface PasswordInputProps extends Omit, 'type'> { autoComplete: string initiallyRevealed?: boolean } export function PasswordInput({ autoComplete, initiallyRevealed = false, ...inputProps }: PasswordInputProps) { const [revealed, setRevealed] = useState(initiallyRevealed) return ( ) }