Skip to content

PasswordInput ​

Password with reveal toggle and meter

A password field with a reveal button. Add meter where someone is making a password (sign-up, change password): the field then asks password managers for a new one.

Basic
Fair
  • autocomplete is current-password, or new-password with meter; pass your own to override.
  • The reveal button keeps one name (showLabel) and says whether it's on by its pressed state.
  • Label it with a Field like any input.

Usage ​

ts
import { BlessPasswordInput } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
meterboolean—show the strength meter under the field
showLabelstring"Show password"the reveal button's name; its pressed state says whether it's showing
modelValuestring""

Events

NamePayloadDescription
update:modelValue[value: string]

Released under the MIT License. Character names and artwork belong to their owners.