Password Input

A simple password input component with a visibility toggle button to show or hide the password.

Usage

import { PasswordInput } from "@/app/_components/ui/password-input";
<PasswordInput placeholder="Enter your password" showToggle={true} />

Props

Extends Shadcn/ui Input component.

NameTypeDefaultDescription
showTogglebooleanfalseWhether to show the password visibility toggle button.