<script>
import { formula } from 'svelte-formula';
const { form, isFormValid } = formula();
</script>
<form use:form>
<label for='password'>Password</label>
<input type='password' required id='password' name='password' />
<label for='passwordMatch'>Password Match</label>
<input type='password' required id='passwordMatch' name='passwordMatch' />
<button disabled={!$isFormValid}>Submit</button>
</form>