Password Field Input

Password Field Input: Password input with show/hide toggle, hint text, and error state. Keeps autocomplete defaults and accessible visibility control. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Password Field Input

npx motion-ui-skill add password-field-input

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Source files

Password Field Input

Password input with show/hide toggle, hint text, and error state. Keeps autocomplete defaults and accessible visibility control.

Install

npx motion-ui-skill add password-field-input

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Usage

"use client";

import { PasswordFieldInput } from "@/components/inputs/password-field-input";

export function PasswordFieldInputDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <PasswordFieldInput />
    </div>
  );
}

API Reference

PasswordFieldInput

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category