Skip to main content

Time picker

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

Time picker - Usage

Time pickers are primarily used within time inputs but can also be utilized standalone in applications where direct time selection is required.

Time picker anatomy

  1. Time picker container
  2. Time unit (column) headers
  3. Selected time
  4. AM/PM select (12-hour format only)
  5. Cancel and confirm buttons

Options​

  • Value: The selected time value.
  • Format: Choose which time units to display, depending on your needs (hours, minutes, seconds, milliseconds). Additionally, define a 12- or 24-hour format. We recommend to use a 24-hour format for universal readability (read more in the UX writing guides).
    • Columns: Hide hours, minutes, seconds and milliseconds columns when not needed.
    • Intervals: Define an interval for every unit to restrict allowed values and provide a faster selection. For example 2 hours, 15 minutes, 30 seconds, 100 milliseconds.
  • Header: Define a header text that conveys the context of the time selection. Hide it when there is already a related headline in your UI.
  • Corners: By default, the time picker shows rounded corners to be consistent with the dropdown. Use straight, left or right corners to combine with other components.
  • Standalone appearance: Shows a flat design without a shadow. We typically use it for inline placement.

Unlike date pickers, time pickers have no require confirmation option. Hours, minutes and seconds form one value, so a selection is always applied with the confirm button and can be discarded with the cancel button.

Behavior in context​

  • Interaction: Users can navigate through the time picker using the keyboard. The following keys are supported:
    • Tab: Navigate between areas of the time picker (header, body, footer).
    • Arrow keys or scroll: Move through time options.
    • Enter or click: Select the highlighted time.
  • Confirmation: A selected time is only applied when users click confirm. Cancel restores the last confirmed time.

States​

An individual time item of a time picker has five states: Default, hover, active, disabled and focused.

The confirm button is disabled until the selected time differs from the confirmed time. Without a confirmed time, the time shown in the picker can be confirmed as is.

Time picker states

Dos and Don’ts​

  • Do use the time picker to ensure accurate time selection (we recommend to use time inputs for that reason)
  • Do provide clear instructions and labels for users
  • Do ensure the time picker is accessible via keyboard
  • Don’t clutter the time picker with unnecessary options