About
Password field with a show/hide toggle and an optional pluggable strength meter.
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 * as React from "react";
import {
PasswordInput,
PasswordInputField,
PasswordInputStrength,
} from "@/components/ui/password-input";
export default function PasswordInputDemo() {
return (
<div className="flex w-full max-w-sm flex-col gap-2">
<label htmlFor="pw-basic" className="text-sm font-medium text-foreground">
Password
</label>
<PasswordInput id="pw-basic">
<PasswordInputField placeholder="Pick a strong one" />
<PasswordInputStrength />
</PasswordInput>
</div>
);
}
















