TimeField

View Source

:
:
:

Start Date:

02/20/2025 11:45 AM

End Date:

02/20/2025 11:59 PM

Props

Accepts Input props.

controlledboolean

If true, the component will be controlled externally. Otherwise, the state will be managed internally.

An array of keys to ignore when pushed. ex: [“ArrowUp”, “ArrowDown”].

intervalnumber
isIOSboolean

Render native time input, defaults to true if user platform is an iOS device, otherwise false.

maxnumber
minnumber
onChange(hoursAndMinutes: [number, number]) => void

Receives new time from typing or navigating with up and down arrow keys.

Displays time based on a 12 hour clock, true by default.

valuetuple

The controlled value passed to the internal input. Accepts an array of [hours, minutes] based on a 24 hour clock.