Skip to main content

TimePickerField

Inputs & Controls

TimePickerField

Field-style time input that pairs labels with value segments.

Usage

Collect times inline inside forms without launching a modal.

Highlights

  • Handles focus per segment
  • Works with keyboard arrows and digits

When to use it

  • Precise data entry is more important than dial UI.
  • Inline forms must stay compact.

Examples

Default

Preview (Web)
import { useState } from 'react';
import { TimePickerField } from 'react-native-molecules/components/TimePickerField';

export default function Example() {
  const [time, setTime] = useState<Date | null>('10:00am');

  return <TimePickerField time={time} onTimeChange={setTime} />;
}
PropTypeDefaultDescription
timeRequiredstring
onTimeChangeRequired(time: string) => void
is24Hourboolean | undefined
withModalboolean | undefined
modalPropsOmit<TimePickerModalProps, "ref" | "time" | "onClose" | "isOpen" | "onConfirm"> | undefined
iconButtonPropsOmit<Partial<IconButtonProps>, "ref" | "onPress"> | undefined
Defined in react-native-molecules/components/TimePickerField