Use this type of time picker for picking a single time (e.g., assignment due time).
This component defines the standard interactions for a time picker. Use this component for every instance of time selection.
Documents
Use this type of time picker for picking a single time (e.g., assignment due time).
The single time picker consists of a specialized input field (including a time icon) and a dropdown component. The dropdown is hidden by default until users interact with the time input field. In the field label, include a formatting example (hh:mm am/pm).
Upon focus:
Note: Size of input isn’t tied to width of dropdown.
Dropdown closes when:
If users close the dropdown without making a selection, it reverts back to the default state.
Upon focus:
Dropdown closes when:
Note: For the first and second points, focus remains on the field until users click elsewhere.
When users interact with the start time input field, it gains focus and the dropdown appears.
Double input field start time focus state
After users select a start time, the focus should automatically switch to the end time and the dropdown for the end time should open.
Note: Time selected in the start time and prior times will not appear in the dropdown.
You can customize the time list to show shorter or longer increments (e.g., 50 minutes for class sessions).
If users refocus on the start time after having selected both a start and end time:
Making a selection will cause focus to automatically shift once again to the end time picker and field.
If users choose a new start time:
This section pertains to manual entry of times directly into the input field.
Users complete manual entry by clicking outside of the input field and then pressing the Enter key or the Tab key.
Error text below the field.
Input type | Basic with icon |
Minimum 150px width | |
Dropdown type | Select option |
Minimum 220px width | |
Icon | clock-18 |
Medium Gray | |
Padding-left 14px | |
Padding-right 14px |
Initial version