Skip to content
RefineUI

Time Input

An input-style time input with scrollable hour and minute columns.

TimeInput combines an input-style trigger, Popover, and 140px fixed-height ScrollArea columns for hours and minutes. The active value stays centered while surrounding choices remain legible. A value is committed when its wheel settles, and remains selected if the popover is dismissed.

Overview

Machine-readable contract from Component Spec.

component: time-inputexport: TimeInputversion: 1tokens.visual: inputattributes: data-refineui=time-input

Anatomy

Partdata-refineui
roottime-input

States

ScopeCategoryValues
componentpseudofocus-visible
componentcomponentselection: placeholder, value
componentcomponentvalidation: error, success
componentavailabilitydisabled
componentenvironmentdir

Accessibility

SlotElementNativeLabeling
time-inputbuttontrueaccessibleName: required

Keyboard

KeyActionNative
Enteractivatetrue
Spaceactivatetrue

Focus

SectionPropertyValue
visualrequiredtrue
visualselector:focus-visible

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import { useState } from "react";import { TimeInput } from "@refineui/react"; const [time, setTime] = useState("09:30"); <TimeInput value={time} onValueChange={setTime} minuteStep={15} hourCycle="12h" />;

Time values always use the 24-hour HH:mm format. Set hourCycle="12h" to show a leading, scrollable AM/PM column. size="xs" | "sm" | "md" | "lg" | "xl" matches Input and inherits a surrounding Field size.

PropDefaultTypeDescription
value—stringControlled value in HH:mm format.
defaultValue—stringInitial uncontrolled HH:mm value.
onValueChange—(value: string) => voidCalled when a wheel selection settles.
minuteStep11 | 5 | 10 | 15 | 30Minute increments in the scrollable list.
hourCycle"24h""24h" | "12h"Shows an AM/PM column in 12-hour mode.
size"lg""xs" | "sm" | "md" | "lg" | "xl"Matches Input control sizing.
error / success / disabledfalsebooleanInput state styling and availability.