Forms
Input
square 48px field. 16px text so phones never zoom.
print.meowda.xyz
Examples
Default
<label class="field">
<span>Name</span>
<input type="text" placeholder="Project name" autocomplete="off">
</label>Types
<label class="field">
<span>Email</span>
<input type="email" placeholder="you@example.com">
</label>
<label class="field">
<span>Password</span>
<input type="password" placeholder="••••••••">
</label>
<label class="field">
<span>Minutes</span>
<input type="number" inputmode="numeric" min="1" max="1440" value="15">
</label>With hint
<label class="field">
<span>Project id</span>
<input type="text" value="proj-atlas-01">
<p class="hint">shown in the url.</p>
</label>Invalid
<label class="field">
<span>Name</span>
<input type="text" value="" aria-invalid="true">
<p class="hint no">a name is required.</p>
</label>Disabled
<label class="field">
<span>Hold</span>
<input type="text" value="15 min" disabled>
</label>Two columns
<div class="two">
<label class="field">
<span>Name</span>
<input type="text" value="Atlas">
</label>
<label class="field">
<span>Plan</span>
<select>
<option>Starter</option>
<option>Team</option>
</select>
</label>
</div>Classes
| Class | What it does |
|---|---|
label.field | label above control, mono caps |
input[type=text|number|email|password|search|tel|url] | styled text inputs |
.hint / .hint.no | helper and error text |
.two | 3fr 2fr grid from 420px |