EnhancePaginationOptions: {
    boundaries?: number;
    defaultValue?: number;
    nextLabel?: string;
    onValueChange?: (value: number) => void;
    prevLabel?: string;
    siblings?: number;
    total?: number;
}

Options for enhancePagination.

Type declaration

  • Optionalboundaries?: number

    Numbered pages always shown at each end when rendering. Defaults to 1.

  • OptionaldefaultValue?: number

    Current page. Falls back to the item marked aria-current="page" in the markup, then to 1.

  • OptionalnextLabel?: string

    Accessible label of a rendered "next" control. Defaults to Next page.

  • OptionalonValueChange?: (value: number) => void

    Called with the new page after every change.

  • OptionalprevLabel?: string

    Accessible label of a rendered "previous" control. Defaults to Previous page.

  • Optionalsiblings?: number

    Numbered pages shown on each side of the current one when rendering. Defaults to 1.

  • Optionaltotal?: number

    Total number of pages. Defaults to the highest numbered item in the markup.