tetra-ui Logotetra ui

Password Input

An input component that allows users to enter a password.

password-input

Installation

npx shadcn@latest add @tetra-ui/password-input

Usage

import { PasswordInput } from "@/components/ui/password-input";
<PasswordInput placeholder="Enter your password" />

Visibility toggle

A show/hide button is built in. Users can tap the eye icon to reveal or mask the password.

Disabled

<PasswordInput disabled placeholder="Enter your password" />

Invalid

<PasswordInput invalid placeholder="Enter your password" />

On this page