Timepicker
Example
Live Editor
Result
Loading...
Disabled
Live Editor
Result
Loading...
Invalid input
Live Editor
Result
Loading...
Label
You can include a label to let users know what the time is for.
Live Editor
Result
Loading...
Working example of Start and End Time
Here you can see the example of how to use the component for start and end time.
Live Editor
Result
Loading...
Props
Name | Type | Default |
---|---|---|
onClick * onClick function for time dropdown |
| — |
onChange * onClick function for time dropdown |
| — |
value * |
| — |
label |
| — |
style |
| — |
disabled Boolean disabled value |
| — |
invalidText string value for invalid time |
| — |
dataTestId data-testid for timepicker |
| "timepicker" |
css Add custom styles to this component. Use with caution. Learn more here: Link |
| — |
inputFieldCss |
| — |
data-{foo} Data attributes can be used by testing libraries to retrieve components or assert their existence |
| — |
* - the prop is required. |