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
#

Size composites
#

The size composite classes .xs, .sm, .md, .lg, and .xl scale inputs and buttons, adjusting height and padding. Apply directly or on a container to cascade to children.

<input class="xs" /> <input class="sm" /> <input /> <input class="lg" /> <input class="xl" />

Set on a container and children inherit the sizing:

<form class="xs">...</form>