Components

Time Picker

A component used to select time (AM/PM/hours/minutes) by scrolling a wheel.

FigmaReact
Time Picker cover image
Available since@seed-design/react@2.2.0, @seed-design/css@2.4.0

Anatomy

Below the root that manages the selection state, Time Picker places a surface that holds the wheel UI.

  • Period Column: The wheel for choosing AM/PM. It's the first column in the 12-hour format.
  • Hour Column: The wheel for choosing the hour. In 12-hour format, it shows 12·1·2…11.
  • Minute Column: The wheel for choosing the minute. The choices are determined by the Minute Step.
  • Selection Indicator: The highlighted selection row in the middle of the wheel. A band with a light background spans the three columns to indicate the position of the currently selected value.

The hour and minute wheels show only numbers, with no unit suffix like "hour" or "minute"; the unit is conveyed by the selection position in the AM/PM column (e.g. AM 10 00 = 10:00 AM).

Composed of Period Column, Hour Column, Minute Column, Selection Indicator.

Properties

Minute Step

Sets the selection interval of the minute wheel.

  • 1: 00·01·02…59 (60 slots) — when you need an exact minute, like for an alarm or timer
  • 5 (default): 00·05·10…55 (12 slots) — most cases, like meeting or appointment times
  • 10: 00·10·20…50 (6 slots) — for looser time selection
  • 15: 00·15·30·45 (4 slots) — reservation slots (15-minute units)
  • 30: 00·30 (2 slots) — business hours, reservation slots (30-minute units)

The wider the interval, the fewer minutes there are to choose from, so selection is faster; the narrower it is, the more precise. When entering at the current time, the selected minute is rounded to the nearest value based on the Minute Step (e.g. with Minute Step=5, 9:13 → 9:15).

Time Picker example with Minute Step set to 1, 5, 10, 15, and 30

Guidelines

Choosing a Layout

Choose the Layout based on how much of the screen the Time Picker takes up and the platform.

  • Inline: The wheel unfolds directly within the screen flow. — for the time step of a writing/settings flow
  • Popover: Pressing the trigger raises a panel anchored to the trigger. — for a time input field in a desktop form
  • Sheet: Pressing the trigger raises a sheet from the bottom of the screen. — for a time input field in a mobile form

Popover and Sheet need a trigger to open the surface, and the trigger is composed from an Input Button or Field. Consider Inline as the default when time selection is the main task on the screen, Sheet for mobile forms, and Popover for desktop forms. For Inline, confirmation is handled by the screen's action area (Next, Done, etc.); for Popover and Sheet, confirmation is handled by the confirmButton.

Example using Time Picker with Inline and Sheet Layout on a mobile screen

Example using Time Picker with Popover Layout on a desktop screen

Time shown on entry

When the wheel is first opened, if a time is already selected, it opens with that value centered; if not, it opens with 00:00 centered. To start from the current time, pass the current time rounded to the Minute Step as defaultValue.

Example of Time Picker opened for the first time based on a selected time versus the current time

Using it together with Date Picker

When you need to collect both date and time, place Date Picker and Time Picker together. The two components share the same Layout vocabulary (Inline, Popover, Sheet), so they pair well.

They don't have to use the same form — choose the Layout that fits each one's weight on the screen. For example, if the date is the key step, expand Date Picker as Inline and keep time as a secondary field, showing Time Picker as a Sheet.

Date Picker is responsible for the behavior and guards of date selection, while Time Picker is responsible only for time selection.

Example using Date Picker expanded as Inline together with Time Picker as a Sheet

Specification

base

StateSlotPropertyValue
enabledrootheight
selectionIndicatorheight
cornerRadius
color
itemheight
paddingX
fontSize
lineHeight
fontWeight
color
selecteditemcolor

Table of contents