Components

TimePicker

Start and end time fields you can type into, with a 15-minute list and a date button

Overview

TimePicker edits a start and end time that share one value. Each time field is a combobox: type a time, or open a 15-minute list.

  • Typed times — 930 is 9:30 AM, 6p is 6:00 PM. Without am/pm the number is read as 24-hour time, so 18 is 6:00 PM and 6 is 6:00 AM
  • Within a day — the end is always at or after the start and less than a day later. An end earlier than the start falls on the next day and shows +1 day
  • Start edits keep the end — changing the start never moves the end time
  • No rounding — 9:07 is saved as 9:07. Only the list uses 15-minute steps
  • Date — TimePicker.Date opens a DatePicker. Picking a day moves start and end together and keeps both times

Basic Usage

–

Crossing Midnight

–+1 day

Recording

An empty end means the log is still recording. The end field shows its placeholder, and editing the start keeps the end empty.

–

Typing a Time

You typeSaved as
6, 066:00 AM
18, 6p, 6pm6:00 PM
930, 9:30, 930a9:30 AM
930p, 9:30 PM, 21309:30 PM
12, 12p12:00 PM
0, 12a12:00 AM
9:079:07 AM
abc, 24, 13pmNot saved: error

Press Enter or leave the field to save. Escape discards what you typed. An unreadable time shows the error only after Enter, so it does not flash while you type. Leaving the field then restores the previous value. Clearing the end and pressing Enter empties the end; the start cannot be emptied.

Sub-components

TimePicker (Root)

PropTypeDefaultRequiredDescription
valueTimePickerValue-Yes{ start, end } as ISO strings or null. An empty end means recording
onChange(value: TimePickerValue) => void-YesCalled only when the value really changes. The end always stays within a day after the start
childrenReactNode-YesDate, Range, Input (field="start" | "end"), Separator, DayOffset

TimePicker.Date

PropTypeDefaultRequiredDescription
placeholderstring'Date'NoText shown when there is no value
aria-labelstring'Date'NoAccessible name. The full date is appended when set
classNamestring-NoExtra CSS class

TimePicker.Input

PropTypeDefaultRequiredDescription
field'start' | 'end'-YesWhich end of the range this field edits
placeholderstring-NoText shown when empty. Defaults to Start / End
aria-labelstring-NoAccessible name. Defaults to Start time / End time
classNamestring-NoExtra CSS class

TimePicker.Range

Lays out the fields, the separator and the day offset in a row.

PropTypeDefaultRequiredDescription
childrenReactNode-NoInputs, Separator and DayOffset
classNamestring-NoExtra CSS class
styleCSSProperties-NoInline style

TimePicker.Separator

PropTypeDefaultRequiredDescription
childrenReactNode'–'NoSeparator content
classNamestring-NoExtra CSS class
styleCSSProperties-NoInline style

TimePicker.DayOffset

PropTypeDefaultRequiredDescription
classNamestring-NoExtra CSS class

Specification

base

상태요소속성값
enabledinputpaddingX$size.space.300
enabledinputpaddingY$size.space.150
enabledinputborderRadius$size.radius.200
enabledinputborderWidth$size.stroke.border
enabledinputborderColor$color.border.default.default
enabledinputbackgroundColor$color.background.default.default
enabledinputtypography$text.bodySmall
enabledinputcolor$color.text.default.default
enabledlistpadding$size.space.100
enabledlistborderRadius$size.radius.200
enabledlistborderWidth$size.stroke.border
enabledlistborderColor$color.border.default.default
enabledlistbackgroundColor$color.background.default.default
enabledlistminWidth180px토큰 아님 — no sizing token scale; matches Figma Time List
enabledoptionpaddingY$size.space.150
enabledoptionborderRadius$size.radius.100
enabledoptiongap$size.space.200
enabledoptiontypography$text.bodySmall
enabledoptioncolor$color.text.default.default
enablederrortypography$text.caption
enablederrorcolor$color.text.danger.default
enabledseparatortypography$text.bodySmall
enabledseparatorcolor$color.text.default.secondary
enableddayOffsetpaddingX$size.space.200
enableddayOffsetpaddingY$size.space.100
enableddayOffsetborderRadius$size.radius.100
enableddayOffsettypography$text.captionStrong
enableddayOffsetbackgroundColor$color.background.tag.gray
enableddayOffsetcolor$color.text.tag.gray
hoverinputbackgroundColor$color.background.default.defaultHover
hoveroptionbackgroundColor$color.background.default.defaultHover
focusinputstrokeWidth$size.stroke.focus
focusinputstrokeColor$color.border.brand.default
focusinputoutlineStylenone토큰 아님 — the border shows focus instead
invalidinputborderColor$color.border.danger.default

Accessibility

  • Each time field is a combobox named Start time or End time. Focus stays in the field; the list position is announced with aria-activedescendant.
  • Keys: Down or Alt+Down opens the list, Up and Down move, Enter picks, Escape closes and discards the typed text, Tab saves and moves on.
  • The error text and the +1 day chip are linked to the field with aria-describedby.

Guidelines

  • Pass value as ISO strings, or null for an empty end.
  • onChange is called only when the value really changes, so tabbing through the fields does not save anything.