Input
Text fields with a label, hint and error state.
Field
We only use this to send receipts.
Enter a valid domain, like example.com.
<div class="stack" style="max-width:340px">
<div class="field"><label class="label" for="f-name">Project name</label><input class="input" id="f-name" value="coverup"></div>
<div class="field"><label class="label" for="f-email">Email</label><input class="input" id="f-email" type="email" placeholder="you@example.com"><span class="hint">We only use this to send receipts.</span></div>
<div class="field"><label class="label" for="f-bad">Domain</label><input class="input is-invalid" id="f-bad" value="not a domain"><span class="hint is-error">Enter a valid domain, like example.com.</span></div>
<div class="field"><label class="label" for="f-off">Disabled</label><input class="input" id="f-off" value="Read only" disabled></div>
</div>Textarea and select
<div class="stack" style="max-width:340px">
<div class="field"><label class="label" for="f-bio">Bio</label><textarea class="input textarea" id="f-bio" placeholder="Tell us about yourself"></textarea></div>
<div class="field"><label class="label" for="f-role">Role</label>
<select class="input select" id="f-role"><option>Admin</option><option>Editor</option><option>Viewer</option></select>
</div>
</div>Classes
| Selector | Purpose |
|---|---|
.input | Text input (also on textarea and select) |
.textarea | Multi-line |
.select | Select with a custom arrow |
.is-invalid | Red border |
.field / .label / .hint | Layout, label and help text |