Repository navigation
feat(registry): add the password strength component - #62
Merged
Merged
Conversation
A password field with a four-bar strength meter driven by GSAP. The bars scale in one after another and shift from red to teal as more rules pass, the strength word slides in, and each rule draws a check when it is met. The eye blinks and draws a slash to show or hide the password. A hidden password shows asterisks through a tiny inline font limited to the mask characters, so selection, the caret and password managers behave like a native field. Includes gallery preview media. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Password Strength, a password field with a four-bar strength meter, animated with GSAP.
power3.out), staggered 60ms one after another, and shift from red to teal as more rules pass.*instead of dots. A 356-byte inline font, limited byunicode-rangeto the two mask characters (•,●), turns each dot into an asterisk. The browser still draws the mask, so selection, the caret, scrolling and password managers behave like a native field.label,placeholder,name,autoComplete(defaultnew-password),rules,value/defaultValue,onValueChange(value, met). Also exportsdefaultRulesand thePasswordRuletype.password-strength-preview.mp4, 75 KB, andpassword-strength-poster.webp).Accessibility
A real
<input>with a<label>, described by the strength line and the rule list. Strength changes are announced politely, every rule ends with a hidden "(met)" or "(not met)", and strength is always given in words, not colour alone. The eye is a real button witharia-pressed. Underprefers-reduced-motioneverything changes instantly.Test plan
pnpm registry:buildpnpm typecheckpnpm test: 1427 passed🤖 Generated with Claude Code