| # Function: WeekNumber() | |
| > **WeekNumber**(`props`): `JSX.Element` | |
| Render the week number element. If `onWeekNumberClick` is passed to | |
| DayPicker, it renders a button, otherwise a span element. | |
| ## Parameters | |
| | Parameter | Type | | |
| | :------ | :------ | | |
| | `props` | [`WeekNumberProps`](../interfaces/WeekNumberProps.md) | | |
| ## Returns | |
| `JSX.Element` | |
| ## Source | |
| [src/components/WeekNumber.tsx:19](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/components/WeekNumber.tsx#L19) | |