Default


Use the Time Picker for time-only selection. For date and time selection, use the DatePicker with Time Selection Enabled instead.

24-Hour Format


Set time_format / timeFormat to 24hour to display the time selection dropdown in a 24-hour format.

Default Time


The default_time / defaultTime prop sets a default time value and accepts both 12-hour and 24-hour formats.

Custom Label


With Timezone


Enable timezone display by passing show_timezone / showTimezone.

Min & Max Time


Use the min_time / minTime and max_time / maxTime props to restrict the selectable time range. This example demonstrates minimum-only, maximum-only, and combined ranges in both 12-hour and 24-hour formats.

Error


Disabled


Required Indicator


The requiredIndicator/required_indicator prop displays a red asterisk (*) next to the label, visually indicating that the field is required. This is purely visual and does not enforce validation.

You can use requiredIndicator/required_indicator with any validation approach: HTML5 validation via the required prop, client-side validation, or backend validation. For this reason, it works independently and doesn't need to be paired with the required prop.

onChange & onClose Handlers


Demonstrates the onChange and onClose event handlers for the Time Picker.


Available Props