WRNexus UI
Advanced Forms component

Strong Password

Theme-aware, responsive strong password component.

27 props0 slots3 eventsTheme readyResponsive
Interactive playground

Configure Strong Password

Change any prop and inspect the server-rendered component immediately.

Live preview
Password strength Strong
Component code
<StrongPassword
  label="Live strength meter"
  name="strong-password-1"
  value="Northstar!2026"
  showRequirements="false"
/>
Component props27 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Strength feedback

Live strength meter

Live live strength meter example with accessible scoring feedback and copyable component code.

01
Live preview
Password strength Strong
Component usage.wrn
<StrongPassword
  label="Live strength meter"
  name="strong-password-1"
  value="Northstar!2026"
  showRequirements="false"
/>
Strength feedback

Requirements and hint text

Live requirements and hint text example with accessible scoring feedback and copyable component code.

02
Live preview
Password strength Enter a password
  • At least 8 characters
  • One lowercase letter
  • One uppercase letter
  • One number
  • One special character: !@#$%^&*()_+-=[]{}|;:,.<>?
Use a unique password you do not use for another account.
Component usage.wrn
<StrongPassword
  label="Requirements and hint text"
  name="strong-password-2"
  hintText="Use a unique password you do not use for another account."
/>
Strength feedback

Requirements in a popover

Live requirements in a popover example with accessible scoring feedback and copyable component code.

03
Live preview
Password strength Enter a password
  • At least 8 characters
  • One lowercase letter
  • One uppercase letter
  • One number
  • One special character: !@#$%^&*()_+-=[]{}|;:,.<>?
Component usage.wrn
<StrongPassword
  label="Requirements in a popover"
  name="strong-password-3"
  presentation="popover"
/>
Configuration

Custom special characters

Live custom special characters example with accessible scoring feedback and copyable component code.

04
Live preview
Password strength Enter a password
  • At least 8 characters
  • One lowercase letter
  • One uppercase letter
  • One number
  • One special character: @#_-.
Component usage.wrn
<StrongPassword
  label="Custom special characters"
  name="strong-password-4"
  specialCharactersSet="@#_-."
/>
Configuration

Optional requirements

Live optional requirements example with accessible scoring feedback and copyable component code.

05
Live preview
Password strength Enter a password
  • At least 8 characters
  • One lowercase letter
  • One uppercase letter
  • One number
Component usage.wrn
<StrongPassword
  label="Optional requirements"
  name="strong-password-5"
  requireSpecialCharacter="false"
/>
Configuration

Disabled password strength

Live disabled password strength example with accessible scoring feedback and copyable component code.

06
Live preview
Password strength Enter a password
  • At least 8 characters
  • One lowercase letter
  • One uppercase letter
  • One number
  • One special character: !@#$%^&*()_+-=[]{}|;:,.<>?
Component usage.wrn
<StrongPassword
  label="Disabled password strength"
  name="strong-password-6"
  disabled="true"
/>
Component events

Respond to every interaction

Events are declared with @event, bubble from the component root, and expose their state through event.detail.

@inputFires as the password value changes.
@changeFires when the password input commits a change.
@strengthFires with the current score, percentage, and strength level.
Event listeners.js
const component = document.querySelector("[data-wrn-strong-password]")

component.addEventListener("select", (event) => {
  console.log(event.detail.value)
  console.log(event.detail.complete)
})

component.addEventListener("load", (event) => {
  console.log(event.detail)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
labelstring"Password"No
namestring"password"No
valuestring""No
placeholderstring"Create a strong password"No
autocompletestring"new-password"No
minLengthnumber8No
specialCharactersSetstring"!@#$%^&*()_+-=[]{}|;:,.<>?"No
requireLowercasebooleantrueNo
requireUppercasebooleantrueNo
requireNumberbooleantrueNo
requireSpecialCharacterbooleantrueNo
showRequirementsbooleantrueNo
presentationstring"inline"No
hintTextstring"Use a unique password you do not use elsewhere."No
emptyLabelstring"Enter a password"No
weakLabelstring"Weak"No
fairLabelstring"Fair"No
goodLabelstring"Good"No
strongLabelstring"Strong"No
disabledbooleanfalseNo
readonlybooleanfalseNo
requiredbooleanfalseNo
invalidbooleanfalseNo
validationMessagestring""No
classstring""No