Live feedback on password strength with visual bar and labels.
★ 0 community votes · Safety scan passed · Sandboxed previewPassword Strength Meter is an interface component generated on MorphCanvas, an infinite AI workspace that turns written intent into reviewable HTML, CSS, and JavaScript widgets. This component passed MorphCanvas’s automated safety scan, which checks for unsafe patterns such as external network calls, storage access, inline event handlers, and code execution, and it is rendered here inside a sandboxed preview frame.
A creator described the result they wanted, MorphCanvas routed the request through its AI provider chain with automatic failover, scanned the generated code, and published the reviewed component to the public library. You can build and publish your own components on the MorphCanvas canvas.
<div class="pw-meter"><input type="password" id="pw" placeholder="Enter password"><div class="bar"><div class="fill"></div></div><div class="label"></div></div>
.pw-meter{max-width:300px;margin:20px auto;font-family:Arial,Helvetica,sans-serif;background:#222;padding:15px;border-radius:8px;color:#eee}.pw-meter input{width:100%;padding:8px;border:none;border-radius:4px;background:#333;color:#eee;margin-bottom:10px}.pw-meter .bar{background:#444;height:8px;border-radius:4px;overflow:hidden;margin-bottom:5px}.pw-meter .fill{height:100%;width:0;background:#f00;transition:width .3s ease}.pw-meter .label{font-size:14px;text-align:center}
document.getElementById('pw').addEventListener('input',function(){var v=this.value,score=0;if(v.length>5)score+=20;if(/[A-Z]/.test(v))score+=20;if(/[a-z]/.test(v))score+=20;if(/[0-9]/.test(v))score+=20;if(/[^A-Za-z0-9]/.test(v))score+=20;score=Math.min(score,100);var fill=document.querySelector('.fill');var label=document.querySelector('.label');fill.style.width=score+'%';fill.style.backgroundColor='rgb('+Math.min(255,5*score)+','+Math.min(255,255-5*score)+',0)';if(score<40)label.textContent='Weak';else if(score<70)label.textContent='Moderate';else label.textContent='Strong';});
Build your own on MorphCanvas