unslopkit

Components / Inputs

Day, month, year

Three short fields for a date, each labelled, sized to the number of digits it takes.

When did the job start?

For example, 27 3 2026

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-date">
<fieldset>
  <legend>When did the job start?</legend>
  <p class="hint">For example, 27 3 2026</p>
  <div class="parts">
    <label>Day<input type="text" inputmode="numeric" class="w2" value="14"></label>
    <label>Month<input type="text" inputmode="numeric" class="w2" value="10"></label>
    <label>Year<input type="text" inputmode="numeric" class="w4" value="2026"></label>
  </div>
</fieldset>
</div>

More inputs

All 27
  • 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

  • /

    Search with a shortcut