TimeInput
Capture time input from user
Import
Source
Docs
Package
Usage
:
Controlled
With seconds
To add seconds set withSeconds
prop:
:
:
12 hours format
:
Input props
Component supports all props from Input and InputWrapper components:
:
Radius
xs
sm
md
lg
xl
Size
xs
sm
md
lg
xl
With icon
You can use any React node as icon:
:
Invalid state and error
:
:
It is not a valid time
Disabled state
:
:
Get input ref
You can get hours input ref with ref
prop:
Accessibility
Provide hours, minutes and seconds labels to make inputs visible to screen reader:
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback