forms #

Form elements have basic default styles that can be omitted with .unstyled.

#

<form> <fieldset> <legend> a <MdnLink path="Web/HTML/Element/legend" /> </legend> <label> <div class="title"> username </div> <input bind:value={username} placeholder=">" /> </label> ... </fieldset> ... </form>
This is a legend

More info can be included in <p> tags like this one. Here we could include info about passwords.

form with range input
#

<input type="range" />
<input type="range" disabled />

form with checkboxes
#

form with radio inputs
#

With .compact
#

The .compact composite class provides tighter sizing with smaller fonts, inputs, padding, border radii, and flow margins. Apply directly or on a container to cascade to children.

<form class="compact"> ... </form>
.compact
normal