Password strength
CoreShow how strong a new password is while it is typed.
pnpm dlx shadcn@latest add https://wui.alann.works/r/password-strength.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
value | string | — |
defaultValue | string | — |
onValueChange | (value: string, strength: PasswordStrengthResult) => void | — |
rules | PasswordRule[] | — |
error | string | — |
revealed | boolean | — |
onRevealedChange | (revealed: boolean) => void | — |
messages | PasswordStrengthMessagesInput | — |
shortLength | number | — |
countCharacters | (password: string) => number | — |