Description
- A numeral date is a fieldset that captures a day, month, and year entered by a user.
- It is empty until the user enters a date.
- Use it for a date of birth or a date that's far from the current date.
Anatomy
Anatomy
Size
Numeral date is available in sizes S, M, and L.
States
Component-specific states
Error
Variations
DDMMYYYY
MMDDYYYY
YYYYMMDD
DDMM
MMDD
MMYYYY
Dos and don'ts
Don't
Don't
Best practices
- Do not use placeholder text as it can cause usability and accessibility issues. Use a descriptive legend, labels, and hint text instead. See guidelines for using placeholder text.
- If the numeral date collects a date of birth, tell the user why you need this information.
- Change a permanently read-only date field to formatted text with no field border.