# TimeRangePicker

This component is used to select a time range.

## Installation

```tsx
import { TimeRangePicker } from 'uxp/components';
```

## Signature

```tsx
const TimeRangePicker: React.FunctionComponent<ITimeRangePickerProps>
```

## Examples

```tsx
<TimeRangePicker
     startTime={startDate}
     endTime={endDate}
     onChange={(s, e) => { setStartDate(s); setEndDate(e) }}
 />
```

## Properties

| Name         | Type                                                                                | Mandatory | Default Value | Example Value |
| ------------ | ----------------------------------------------------------------------------------- | --------- | ------------- | ------------- |
| title        | string                                                                              | Yes       | -             | -             |
| startTime    | string \| Date                                                                      | Yes       | -             | -             |
| endTime      | string \| Date                                                                      | Yes       | -             | -             |
| onChange     | (start: Date, end: Date) => void                                                    | Yes       | -             | -             |
| disableInput | boolean                                                                             | No        | -             | -             |
| spacingMode  | [SpacingMode](https://help.iviva.com/uxp/v5/additional-resources/types/spacingmode) | No        | -             | -             |

## Related Types

* [ITimeRangePickerProps](https://help.iviva.com/uxp/v5/additional-resources/types/itimerangepickerprops)
* [SpacingMode](https://help.iviva.com/uxp/v5/additional-resources/types/spacingmode)
