Timepicker
Example
Live Editor
Result
Disabled
Live Editor
Result
Invalid input
Live Editor
Result
Invalid Time Format
Label
You can include a label to let users know what the time is for.
Live Editor
Result
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
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. |