Skip to main content

Interface: NavigationProps#

The props for the Navigation component.

Properties#

displayMonth#

displayMonth: Date

The month where the caption is displayed.


hideNext#

hideNext: boolean

Hide the next button.


hidePrevious#

hidePrevious: boolean

Hide the previous button.


nextMonth#

Optional nextMonth: Date

The next month.


onNextClick#

onNextClick: (event: MouseEvent<HTMLButtonElement, MouseEvent>) => void

Event handler when the next button is clicked.

Type declaration:#

▸ (event: MouseEvent<HTMLButtonElement, MouseEvent>): void

Parameters:#

NameType
eventMouseEvent<HTMLButtonElement, MouseEvent>

Returns: void


onPreviousClick#

onPreviousClick: (event: MouseEvent<HTMLButtonElement, MouseEvent>) => void

Event handler when the previous button is clicked.

Type declaration:#

▸ (event: MouseEvent<HTMLButtonElement, MouseEvent>): void

Parameters:#

NameType
eventMouseEvent<HTMLButtonElement, MouseEvent>

Returns: void


previousMonth#

Optional previousMonth: Date

The previous month.