s72
  • Date and time

    input[type="date"] since 0.1.0

    <input type="date">, "time" and "datetime-local" take the same border, fill and height as a text field. No attribute, no script: the browser's own field and picker do the work.

    Basic

    html
    <div data-grid="3">
      <label data-field><span>From</span><input type="date" value="2026-10-05"></label>
      <label data-field><span>At</span><input type="time" value="09:30"></label>
      <label data-field><span>Deadline</span><input type="datetime-local" value="2026-10-09T17:00"></label>
    </div>

    The fields line up with the text inputs beside them, whatever the browser puts inside.

    Notes