This page demonstrates how @sparkstone/css
styles common form elements and includes
example code for each.
<form>
<label>Name <input type="text" placeholder="Jane Doe"></label>
<label>Email <input type="email" placeholder="jane@example.com"></label>
<label>Bio <textarea></textarea></label>
<label>
Role
<select>
<option>Developer</option>
</select>
</label>
<label><input type="checkbox"> Subscribe</label>
<button>Submit</button>
</form>
<form>
<label>
Username
<input type="text" aria-invalid="true">
<small class="error">This username is already taken</small>
</label>
<label>
Password
<input type="password" aria-invalid="true">
<small class="error">Password must be at least 8 characters</small>
</label>
<button class="error">Submit</button>
</form>
A full form combining all the above elements into a realistic layout.