PasswordInput

PasswordInput is a component that allows users to input passwords with a visibility toggle.

Usage

import { PasswordInput, StrengthMeter } from "@yamada-ui/react"
<PasswordInput />
<StrengthMeter />

Change Variants

Change Size

Change Color Scheme

Default Visible

To display the value by default, set defaultVisible to true.

Show Strength Meter

To display the strength meter, use StrengthMeter.

Medium

Change Border Color

To change the border color, set focusBorderColor or errorBorderColor to the color.

Change Placeholder Color

To change the placeholder color, set _placeholder to the color.

Disable

To disable, set disabled to true.

Read-Only

To make read-only, set readOnly to true.

Invalid

To make invalid, set invalid to true.

Customize Icon

To customize icons, set on and off of visibilityIcon to ReactNode.

Control

Password visibility: show

Props

Accessibility

Currently, this section is being updated due to the migration of v2.