@engie-group/fluid-design-system-react
Version:
Fluid Design System React
27 lines (26 loc) • 999 B
TypeScript
import React from 'react';
import { WithHTMLAttributes } from '../../utils/typeHelpers';
export declare const NJPagination: React.ForwardRefExoticComponent<IPaginationProps & React.RefAttributes<HTMLElement>>;
export interface IPaginationProps extends WithHTMLAttributes<IPaginationBaseProps, 'nav'> {
}
export interface IPaginationBaseProps {
/**
* Total number of pages
*/
count: number;
/**
* Current page
*/
currentItem?: number;
/**
* Text alternative for assistive technologies for previous button
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label
*/
ariaLabelPrevious: string;
/**
* Text alternative for assistive technologies for next button
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label
*/
ariaLabelNext: string;
onChange?: (item: number, event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
}