kuratlielia

Password Field

Forms

About

A labeled password input with an animated reveal toggle that morphs an eye icon with a drawn slash and smoothly animates helper or error text in and out.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Password Field to your project and fits it to your theme.

Code

How Password Field is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import PasswordField from "@/components/ui/password-field";

export default function PasswordFieldDemo() {
  return (
    <div className="flex w-full max-w-sm items-center justify-center p-10">
      <PasswordField
        label="Password"
        description="Must be at least 8 characters."
        placeholder="Enter your password"
      />
    </div>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    523
  • Image Compare

    Image Compare

    219
  • Stats Band

    Stats Band

    162
  • User Menu

    User Menu

    116
  • Date Range Picker

    Date Range Picker

    109
  • Usage Meter

    Usage Meter

    83
  • Ridgeline Chart

    Ridgeline Chart

    69
  • Timeline

    Timeline

    61

More in Forms

View all
  • Contact Form

    Contact Form

    30
  • Contact Card

    Contact Card

    1.1K
  • Premium Auth

    Premium Auth

    608
  • Form

    Form

    7
  • Book A Demo 1

    Book A Demo 1

    94
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Paper Plane

    Paper Plane

    49
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.9K