File size: 517 Bytes
cf86710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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)