Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Authentication

Sign up with password rules

An account form with a live strength meter and requirements checklist beside a trial benefits panel and workspace preview.

bunx --bun @getweini/cli@latest add alert badge button card checkbox input link password-input progress
Customize
  • The checklist and meter update as people type and are announced politely through a live region, so the rules are never a surprise on submit. The submit handler blocks until every rule passes.
  • Edit the `rules` array in the script to change requirements. Each rule is a label and a test; the strength score is the number of passed rules.
  • The side panel shows trial benefits and a workspace preview that names itself after the email domain as people type. It becomes a compact panel under the form on tablets and is dropped on phones, where only the trust line stays.
  • Pass `loading` while your request runs and `error` with a message from your server, for example when the email is already registered. All copy, including strength labels and benefits, lives in the `copy` prop.