Skip to main content

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

NameTypeDefault
onClick *
onClick function for time dropdown
(time: string) => void
onChange *
onClick function for time dropdown
(inputValue: string) => void
value *
string
label
string
style
CSSProperties
disabled
Boolean disabled value
boolean
invalidText
string value for invalid time
string
dataTestId
data-testid for timepicker
string
"timepicker"
css
Add custom styles to this component. Use with caution. Learn more here: Link
SupportedStyleAttributes
inputFieldCss
SupportedStyleAttributes
data-{foo}
Data attributes can be used by testing libraries to retrieve components or assert their existence
string
* - the prop is required.