UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

12 lines (11 loc) 491 B
/** * Generates the min and max-dates possible to show and navigate to in the calendar. * In the cases there is not a startMonth or endMonth, and layout is "label" no min or max dates are set. * @returns Return the start and end months for the calendar navigation. */ export declare function calendarRange({ captionLayout, startMonth, endMonth, today, }: { captionLayout?: "label" | "dropdown"; startMonth?: Date; endMonth?: Date; today?: Date; }): (Date | undefined)[];