Time Clock
The Time Clock component lets the user select a time without any input or popper / modal.
Basic usage
Uncontrolled clock
Controlled clock
disabled
readOnly
Views
The component can contain three views: hours
, minutes
, and seconds
.
By default, only the hours
and minutes
views are enabled.
You can customize the enabled views using the views
prop.
Views will appear in the order they're included in the views
array.
"hours", "minutes" and "seconds"
"hours"
"minutes" and "seconds"
12h/24h format
The component uses the hour format of the locale's time setting, i.e. the 12-hour or 24-hour format.
You can force a specific format using the ampm
prop.
You can find more information about 12h/24h format in the Date localization page.
Locale default behavior (enabled for enUS)
AM PM enabled
AM PM disabled
Localization
See the Date format and localization and Translated components documentation pages for more details.
Validation
See the Validation documentation page for more details.