Vibary.ai
← Vibe Coding

Password Strength Bar

A segmented meter fills bar by bar and shifts hue as a password improves.

feedbackminimalcalmautomatic · finite · starter · ~0.7s
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

225 lines · react + motion only
import { motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Password Strength Bar
 *
 * A segmented meter whose bars fill left to right and shift hue as a
 * password gets stronger, with the tier word and the hint crossfading
 * underneath.

About this pattern

Live feedback while someone chooses a password. Each bar scales in from its left edge in a quick left-to-right cascade, and the whole row travels through a hue scale — red, amber, olive, green — as the tier changes. The tier word and the guidance line sit in fixed slots and crossfade in place, so the type size never changes and the form never reflows under the cursor. Judgement matters more than drama here: the meter is telling the reader something factual, so it settles on its value without overshooting past it.

Sign-up password fieldChange password screenPassphrase quality hintAccount security settings

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Ridgeline
    Settings
    General
    Notifications
    Members
    Billing
    SettingsNew
    Desktop notificationsAlert on mention and reply
    Weekly digestEvery Monday at 09:00
    SoundsPlay a tone for new messages
    Follow repliesTrack threads you post in
    Settings

    Password generator shows a strength scale that recolors as the recipe changes.

Related patterns