Components · Forms · Time
Back to Time typesTime
Use for entering or selecting a single time of day, like a meeting start time, a reminder, or store hours - visually a text field with a fixed trailing clock icon.
Properties
Size, corner radius, label and placeholder are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.
Live Preview
Both types compared side by side, each in all 9 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.
When to use
Any form field that collects a time of day rather than free-form text.
Validation
Typed time entry can be malformed or simply out of range, and a picker-selected value can still fall outside a business-hours-style limit - both need direct, specific feedback.
- Required marking - mark the field required only when a time value is mandatory to proceed, with the standard label asterisk.
- Validation timing - validate typed entry on blur, not on every keystroke, so a partial entry like "9:3" isn't flagged mid-type. A picker-selected value is validated immediately, since the picker only offers valid options.
- Invalid time entry - reject an out-of-range or malformed value with a specific message - "Hours must be between 00 and 23," "Minutes must be between 00 and 59," or, for a format mismatch like "930" instead of "9:30," ask for the expected format directly.
- Allowed range - if the field is limited to a window (e.g. business hours only), reject a time outside it with a specific message like "Choose a time between 9:00 AM and 5:00 PM," and gray out out-of-range options in the picker itself so most invalid picks are prevented rather than only caught after entry.
- Error message - show the message inline next to the field, worded specifically enough that the user knows exactly what to change.
Component Guide
Overview
Time is a text field with a fixed trailing clock icon that opens a time picker for selecting a time of day - the temporal counterpart to Date Picker, used whenever the value is a time rather than a calendar date.
When to Use
- A meeting or event start time - any specific time of day.
- A reminder or alarm - a time with no associated calendar date.
- Store hours or an appointment slot - a time chosen from within a day.
When Not to Use
- A calendar date - use Date Picker.
- Both a date and a time together - pair Date Picker and Time as two fields, or use a combined date-time pattern if the product defines one - Time alone doesn't carry a date.
- A duration rather than a point in time - e.g. "2 hours" - use Number with a unit label instead.
Best Practices
- Respect the user's locale for 12-hour vs. 24-hour display, rather than hard-coding one format.
- Snap the picker to a sensible interval (e.g. 15 minutes) when exact-to-the-second precision isn't meaningful.
- Let the user type a time directly as an alternative to scrolling/clicking through the picker.
Do and Don't
Do
Your local time (GMT+1).
Names the timezone the number is in, which is the only thing that makes a time shared between people actionable.
Don't
A bare time is ambiguous the moment two people in different places read it, and neither of them will notice until one misses the meeting.
Accessibility
- The time picker is fully keyboard-operable (arrow keys or typing to adjust hour/minute, Enter to confirm).
- The field's accessible name states what the time represents ("Meeting start time"), not just "Time".
- AM/PM (in 12-hour format) is exposed as its own clearly labeled control, not bundled invisibly into the hour value.
Related Components
Date Picker, Date Range, Number.
{
"component": "Time",
"category": "Forms",
"summary": "Time is a text field with a fixed trailing clock icon that opens a time picker for selecting a time of day - the temporal counterpart to Date Picker, used whenever the value is a time rather than a calendar date.",
"whenToUse": [
"A meeting or event start time - any specific time of day.",
"A reminder or alarm - a time with no associated calendar date.",
"Store hours or an appointment slot - a time chosen from within a day."
],
"whenNotToUse": [
"A calendar date - use Date Picker.",
"Both a date and a time together - pair Date Picker and Time as two fields, or use a combined date-time pattern if the product defines one - Time alone doesn't carry a date.",
"A duration rather than a point in time - e.g. \"2 hours\" - use Number with a unit label instead."
],
"bestPractices": [
"Respect the user's locale for 12-hour vs. 24-hour display, rather than hard-coding one format.",
"Snap the picker to a sensible interval (e.g. 15 minutes) when exact-to-the-second precision isn't meaningful.",
"Let the user type a time directly as an alternative to scrolling/clicking through the picker."
],
"doAndDont": {
"do": "Names the timezone the number is in, which is the only thing that makes a time shared between people actionable.",
"dont": "A bare time is ambiguous the moment two people in different places read it, and neither of them will notice until one misses the meeting."
},
"accessibility": [
"The time picker is fully keyboard-operable (arrow keys or typing to adjust hour/minute, Enter to confirm).",
"The field's accessible name states what the time represents (\"Meeting start time\"), not just \"Time\".",
"AM/PM (in 12-hour format) is exposed as its own clearly labeled control, not bundled invisibly into the hour value."
],
"relatedComponents": [
"Date Picker",
"Date Range",
"Number"
]
}