unslopkit

Components / Inputs

Label, hint, error

A bold label, a hint under it, a thick-bordered field, and an error state marked with a bar down the left.

As it appears on your invoices

Error: Enter an email address in the right format, like name@example.com

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-input-govuk-input">
<div class="fieldx">
  <label for="ukc-gi-1">Business name</label>
  <p class="hint">As it appears on your invoices</p>
  <input id="ukc-gi-1" type="text" value="Halden Joinery">
</div>
<div class="fieldx error">
  <label for="ukc-gi-2">Contact email</label>
  <p class="msg"><span class="sr">Error:</span> Enter an email address in the right format, like name@example.com</p>
  <input id="ukc-gi-2" type="email" value="mara@" aria-invalid="true">
</div>
</div>

More inputs

All 27
  • When did the job start?

    For example, 27 3 2026

    Day, month, year

  • Great names are short and memorable.

    Compact field

  • You can change this later.

    Enter a number, like 12000.

    Filled field, bottom rule

  • Street and number
    Enter a 5 digit ZIP code

    Plain field with a thick focus

  • Floating label

  • Field with an attached button