---
sidebar_position: 3
---
# Multiple Mode
Set the `mode` prop to `"multiple"` to enable the selection of multiple dates in DayPicker.
```tsx
```
## Multiple Mode Props
| Prop Name | Type | Description |
| ---------- | -------------------------------------------------------------------------------- | ------------------------------------------------- |
| `selected` | `Date[] \| undefined` | The selected dates. |
| `onSelect` | [`OnSelectHandler`](../api/type-aliases/OnSelectHandler.md) | Event callback when a date is selected. |
| `min` | `number` | The minimum number of dates that can be selected. |
| `max` | `number` | The maximum number of dates that can be selected. |
| `required` | `boolean` | Make the selection required. |
Use the `selected` and `onSelect` props to manage the selected dates:
```tsx
export function App() {
const [selected, setSelected] = React.useState();
return (
);
}
```
## Min and Max Dates
Use the `min` and `max` props to limit the number of selectable dates.
```tsx
```
## Required Selection
By setting the `required` prop, DayPicker ensures that the selected dates cannot be unselected.
```tsx
```