TimePicker API
API reference docs for theTimePicker
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Label for the TimePicker. | _ |
|
| Determines if the label is visible to sighted users. |
|
|
| Format for the time (12-hour or 24-hour). |
|
|
| Interval for time options (in minutes). |
|
|
| The default visual style of the nested input. |
|
|
| If | _ |
|
| The default Note: You can set | _ |
|
| The minimum allowed time value. The time picker will only show options that are later than this value, excluding any times before and equal to this time. | _ |
|
| The maximum allowed time value. The time picker will only show options that are earlier than this value, excluding any times after and equal to this time. | _ |
|
| Indicates if the opened element should be rendered as a Sheet in mobile viewports | true |
|
| The size of the field which is built-in to the Timepicker. |
|
|
| On mobile Timepicker renders a Sheet component. If | _ |
|
| An optional array of custom times ( | _ |
|
| Determines whether to show the duration label. Note: The |
|
|
| Determines whether to clear the | _ |
|
| Message to show when the time picker is invalid. | _ |
|
| When true, the timepicker will be announced as disabled to screen-readers and styled accordingly. | _ |
|
| When true, the timepicker options(Popover) will be rendered outside the DOM hierarchy of the parent component. |
|
|
| Callback function for when a new option is selected. | _ |
|
| An array of custom strings that can be added as TimeOption in the Timepicker. | _ |