NimUI
ComponentsForms

TimePicker

Compact time selection for cutoff times, shifts, and scheduling fields

TimePicker stores a time-only value as an HH:mm string. Use it when the field should not invent a date: cutoff time, pickup slot, shift start, or business hours.

Import

import { TimePicker } from '@nim-ui/components';

Basic Usage

Cutoff Time
Code
<TimePicker defaultValue="17:00" step={15} name="cutoffTime" />

12 Hour Labels

<TimePicker hourCycle="12" step={30} />

Props

NameTypeDefaultDescription
valuestring-Controlled HH:mm value
defaultValuestring-Uncontrolled initial HH:mm value
onChange(time: string | undefined) => void-Called when a time is selected
stepnumber15Minute interval between options
hourCycle'12' | '24''24'Display format for option labels
min / maxstring-Inclusive HH:mm bounds
namestring-Renders a hidden input with the selected HH:mm value

On this page