File size: 538 Bytes
cf86710 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Function: Caption()
> **Caption**(`props`): `JSX.Element`
Render the caption of a month. The caption has a different layout when
setting the [DayPickerBase.captionLayout](../interfaces/DayPickerBase.md#captionlayout) prop.
## Parameters
| Parameter | Type |
| :------ | :------ |
| `props` | [`CaptionProps`](../interfaces/CaptionProps.md) |
## Returns
`JSX.Element`
## Source
[src/components/Caption.tsx:37](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/components/Caption.tsx#L37)
|