TimeInput

To select/input a time.

When To Use

By clicking the input box, you can select a time from a popup panel.

Basic

Click the input, and then we could select or input a time in panel.

With Seconds

Show seconds by enabling the showSeconds prop.

Time Range

Enable range selection to pick a start and end time.

Disabled

A disabled state of the time input.

12 or 24 hours format

TimeInput can be forced to use 12 or 24 hour format using the hourCycle property.


Error State

Add an error state to TimeInput, which could display a message.

Invalid time selected

Success State

Add a success state to TimeInput.

Time is valid!

API

Property
Description
Type
Default

label

Label for the time input string

showSeconds

Whether to show seconds in the picker boolean false

range

Enables time range selection boolean false

hourCycle

Forces 12 or 24 hour format (12 or 24) '12' | '24'

error

Error message to display string | boolean

success

Indicates a success state or displays a success message string | boolean

disabled

Whether the input is disabled boolean false