TimeInput
Capture time from the user
Import
Source
Docs
Package
Usage
TimeInput
component supports Input and Input.Wrapper components features and all input
element props. TimeInput
documentation does not include all features supported by the component – see Input documentation to learn about all available features.
Input description
Controlled
Show browser picker
You can show browser picker by calling showPicker
method of input element.
Note that some browsers (desktop Safari) do not support this feature and the
method will do nothing.
With seconds
With icon
Disabled state
Get element ref
Accessibility
If TimeInput
is used without label
prop, it will not be announced properly by screen reader:
Set aria-label
to make the input accessible. In this case label will not be visible, but screen reader will announce it:
If label
prop is set, input will be accessible it is not required to set aria-label
: