informel disable submit error
by juliendelort
HTML
<script src="https://unpkg.com/informel"></script>
<inform-el error-disable-submit>
<form>
<label>
First Name
<inform-field>
<input type="text" name="firstName" required />
</inform-field>
</label>
<label>
Last Name
<inform-field>
<input type="text" name="lastName" required />
</inform-field>
</label>
<button type="submit">Submit</button>
</form>
</inform-el>
CSS
label {
display: block;
margin-bottom: 20px;
}
body {
background: #f6f8fa;
font-family: arial;
padding: 20px;
}
inform-el {
--error-margin: 5px 0;
}