baseui
Version:
A React Component library implementing the Base design language
30 lines (29 loc) • 897 B
TypeScript
import * as React from 'react';
import type { PaginationProps } from './types';
import type { Locale } from '../locale';
import type { SyntheticEvent } from 'react';
type PageOption = {
label: number;
};
export default class Pagination extends React.PureComponent<PaginationProps, {
isFocusVisible: boolean;
}> {
static defaultProps: {
labels: {};
overrides: {};
};
state: {
isFocusVisible: boolean;
};
handleFocus: (event: SyntheticEvent) => void;
handleBlur: (event: SyntheticEvent) => void;
getMenuOptions: any;
onMenuItemSelect: (data: {
value: ReadonlyArray<PageOption>;
}) => void;
onPrevClick: (event: SyntheticEvent<any>) => void;
onNextClick: (event: SyntheticEvent<any>) => void;
constructAriaWayfinderLabel: (locale: Locale, prefix: string) => string;
render(): React.JSX.Element;
}
export {};