About
A text input field with a toggle button that shows or hides the entered password.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Password Input to your project and fits it to your theme.
Code
How Password Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import PasswordInput from "@/components/ui/password-input";
export default function PasswordInputDemo() {
return (
<div className="w-full max-w-sm">
<PasswordInput placeholder="Enter your password" />
</div>
);
}
















