Password Input
A single-field password input built on Input Group, with a show/hide toggle. Passwords are opaque strings, not RTL-meaningful text, so the field forces dir="ltr" and keeps the toggle button on the same physical side, regardless of the surrounding document direction.
Last updated January 1, 1980
Overview
Installation
Usage
import { PasswordInput } from "@/components/ui/password-input"
export function Example() {
return <PasswordInput autoComplete="current-password" />
}RTL
The label and description follow the surrounding RTL layout, while the password field and its toggle button stay LTR and keep the eye icon on the same physical side.