DateRangePicker
Select a date range with separate start and end inputs and a shared calendar.
Basic usage
Use index={0} for the start input and index={1} for the end input. The form receives each endpoint separately, for example as trip[start] and trip[end].
Start2292028
End352028
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
value / defaultValue | DateSelection | — |
names | readonly [string, string] | derived from name |
numOfMonths | 1 | 2 | 1 |
closeOnSelect | boolean | true |
index (Input) | 0 | 1 | 0 |