Brand Guide

Components

Date field

Picks a day or a month from a calendar.

Default

The field opens a calendar of days. Weeks start on Monday, today is outlined, and the month at the top steps out to a grid of months.

Month

With precision="month" the field opens a grid of months, and the year at the top steps out to a grid of years.

In a field

The earliest day, allowing for your notice period.

Earliest and latest

minDate and maxDate turn off the dates outside them. Here each date bounds the other, and an empty end date opens at the start date.

Ongoing

ongoing is for the end date of a role someone still holds. The field is disabled and reads “Present”.

Invalid

Choose a later date to clear the error.

Disabled

A disabled date cannot be cleared.

Read-only

The field does not open. A lock takes the place of the clear button.

From your CV.

Best practices

  • Use day precision for a date someone knows exactly, such as a start date or an interview. Use month precision for CV history, where nobody remembers the day.
  • The value is a string: YYYY-MM-DD for a day, YYYY-MM for a month, and an empty string when nothing is chosen. minDate and maxDate take the same format.
  • Bound a pair of dates by each other, so a role can never end before it starts.
  • For a role that is still going, set ongoing on the end date and leave its value empty, instead of asking for a date in the future.
  • A chosen date can be cleared from the field, so the form does not need its own clear button.
  • Below 640px the calendar opens in a bottom sheet instead of a popover.
  • Give a read-only date field helper text saying where the date came from.