Skip to content

kawser43/svelte-password-strength-bar

Repository files navigation

svelte-password-strength-bar

A simple Svelte component to show password strength bar

Gif

Install

$ npm install svelte-password-strength-bar

Usage

<script>
import PasswordStrength from "svelte-password-strength-bar";
let password = ""
</script>

<div class="w-72 mx-auto my-8">
    <div class="">
        <h1 class="text-center font-semibold text-lg mb-4 text-orange-600">Svelte password strength bar</h1>
        <label for="password" class="block">Password</label>
        <input 
            class="w-full p-1 border border-gray-600 rounded"
            type="password" 
            placeholder="Password" 
            name="password"
            bind:value={password}
        />
    </div>
    <PasswordStrength {password}/>
</div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published