A password input with an animated eye toggle. The eye follows your cursor and blinks periodically, creating a playful yet functional reveal control.
Dependencies
Interaction Type
Hover eye button for micro-clicks; click to toggle visibility with click audio feedback. The pupil tracks your cursor.
Props
Options you can pass to customize this component.
labelLabel text above the input. Defaults to "Password".
showLabelAccessible label when password is hidden. Defaults to "Show password".
hideLabelAccessible label when password is visible. Defaults to "Hide password".
containerClassNameAdditional classes for the outer container.
labelClassNameAdditional classes for the label element.
classNameAdditional classes for the input element.
Installation
How to use
import { PasswordInput } from "@/components/ui/password-input"
export function Demo() {
return <PasswordInput placeholder="Enter your password" />
}Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.