UNPKG

541 BTypeScriptView Raw
1import React, { type MouseEventHandler, type HTMLAttributes } from "react";
2/**
3 * Render the toolbar with the navigation button.
4 *
5 * @group Components
6 * @see https://daypicker.dev/guides/custom-components
7 */
8export declare function Nav(props: {
9 onPreviousClick?: MouseEventHandler<HTMLButtonElement>;
10 onNextClick?: MouseEventHandler<HTMLButtonElement>;
11 previousMonth?: Date | undefined;
12 nextMonth?: Date | undefined;
13} & HTMLAttributes<HTMLElement>): React.JSX.Element;
14export type NavProps = Parameters<typeof Nav>[0];