Description
- A Time input captures time entered in hours and minutes.
- Use it to capture:
- Start and end times. For example, in a HR timesheet.
- Duration. For example, in an invoice.
Anatomy
Anatomy
Size
Time input is available in S, M and L sizes.
Variations
Time format
24-hour
12-hour
Errors
Learn how to write error messages for a time input in the Content tab
Single field
All fields
Best practices
- Allow a user to enter times in shorthand or common formats. Convert times to a format accepted by the database behind the scenes. See guidelines for capturing numeric data
- Do not use placeholder text as it can cause usability and accessibility issues. Use a descriptive label and hint text instead. See guidelines for using placeholder text
- Instead of a permanently read-only time field, use formatted text with no field border.