Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
PasswordStrength.svelte
<script>
import PasswordStrength from './PasswordStrength.svelte'
let password = 'a'
</script>

<a href="https://github.com/deanilvincent/check-password-strength" target="_blank">Go to the documentation of check-password-strength on Github</a>

<label for="password">Password</label>
<input type="text" name="password" bind:value={password} />
<PasswordStrength {password} />

<style>
a { display: block; margin: 0 0 20px; }
input { width: 100%; }
</style>
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */