// Generated by scripts/generate-showcase.mjs. Do not edit directly. page StrongPasswordDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Live strength meter" state playground_name = ctx.url.searchParams.get("pg_name") ?? "strong-password-1" state playground_value = ctx.url.searchParams.get("pg_value") ?? "Northstar!2026" state playground_placeholder = ctx.url.searchParams.get("pg_placeholder") ?? "Create a strong password" state playground_autocomplete = ctx.url.searchParams.get("pg_autocomplete") ?? "new-password" state playground_minLength = Number(ctx.url.searchParams.get("pg_minLength") ?? "8") state playground_specialCharactersSet = ctx.url.searchParams.get("pg_specialCharactersSet") ?? "!@#$%^&*()_+-=[]{}|;:,.<>?" state playground_requireLowercase = (ctx.url.searchParams.get("pg_requireLowercase") ?? "true") === "true" state playground_requireUppercase = (ctx.url.searchParams.get("pg_requireUppercase") ?? "true") === "true" state playground_requireNumber = (ctx.url.searchParams.get("pg_requireNumber") ?? "true") === "true" state playground_requireSpecialCharacter = (ctx.url.searchParams.get("pg_requireSpecialCharacter") ?? "true") === "true" state playground_showRequirements = (ctx.url.searchParams.get("pg_showRequirements") ?? "false") === "true" state playground_presentation = ctx.url.searchParams.get("pg_presentation") ?? "inline" state playground_hintText = ctx.url.searchParams.get("pg_hintText") ?? "" state playground_emptyLabel = ctx.url.searchParams.get("pg_emptyLabel") ?? "Enter a password" state playground_weakLabel = ctx.url.searchParams.get("pg_weakLabel") ?? "Weak" state playground_fairLabel = ctx.url.searchParams.get("pg_fairLabel") ?? "Fair" state playground_goodLabel = ctx.url.searchParams.get("pg_goodLabel") ?? "Good" state playground_strongLabel = ctx.url.searchParams.get("pg_strongLabel") ?? "Strong" state playground_disabled = (ctx.url.searchParams.get("pg_disabled") ?? "false") === "true" state playground_readonly = (ctx.url.searchParams.get("pg_readonly") ?? "false") === "true" state playground_required = (ctx.url.searchParams.get("pg_required") ?? "false") === "true" state playground_invalid = (ctx.url.searchParams.get("pg_invalid") ?? "false") === "true" state playground_validationMessage = ctx.url.searchParams.get("pg_validationMessage") ?? "" state playground_class = ctx.url.searchParams.get("pg_class") ?? "" seo { title = "Strong Password" description = "Theme-aware, responsive strong password component." } view {
Advanced Forms component

Strong Password

Theme-aware, responsive strong password component.

27 props0 slots3 outputsTheme readyResponsive
Interactive playground

Configure Strong Password

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

Live preview
Component code
<StrongPassword
  label="Live strength meter"
  name="strong-password-1"
  value="Northstar!2026"
  showRequirements="false"
/>
Event outputInteract with the preview to inspect the typed payload.
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
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
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
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
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
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
Component usage.wrn
<StrongPassword
  label="Disabled password strength"
  name="strong-password-6"
  disabled="true"
/>
Component outputs

Receive every typed component output

Use declarative output handlers in .wrn files or register a direct output handler from JavaScript. The canonical API exposes payload and does not require event.detail.

@inputFires as the editable value changes.
@changeFires when the component's committed value or selection changes.
@strengthFires when the calculated password-strength state changes.
Declarative handlers.wrn
<StrongPassword
  @input='console.log(payload)'
  @change='console.log(payload)'
  @strength='console.log(payload)'
/>
Direct output handlers.js
import { registerOutputHandler } from "@wrnexus/csr/outputs"

const component = document.querySelector("[data-ui-component=\"StrongPassword\"], [data-component=\"StrongPassword\"]")

if (component) registerOutputHandler(component, "input", (payload) => {
  console.log("input", payload)
})

if (component) registerOutputHandler(component, "change", (payload) => {
  console.log("change", payload)
})

if (component) registerOutputHandler(component, "strength", (payload) => {
  console.log("strength", payload)
})
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
} }