react-day-picker / website /versioned_docs /version-8.10.1 /api /interfaces /SelectSingleContextValue.md
| # Interface: SelectSingleContextValue | |
| Represents the value of a [SelectSingleContext](../variables/SelectSingleContext.md). | |
| ## Properties | |
| ### onDayClick? | |
| > `optional` **onDayClick**: [`DayClickEventHandler`](../type-aliases/DayClickEventHandler.md) | |
| Event handler to attach to the day button to enable the single select. | |
| #### Source | |
| [src/contexts/SelectSingle/SelectSingleContext.tsx:15](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/SelectSingle/SelectSingleContext.tsx#L15) | |
| *** | |
| ### selected | |
| > **selected**: `undefined` \| `Date` | |
| The day that has been selected. | |
| #### Source | |
| [src/contexts/SelectSingle/SelectSingleContext.tsx:13](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/SelectSingle/SelectSingleContext.tsx#L13) | |