UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

26 lines 933 B
export declare function buildPaginationModel(pageCount: number, currentPage: number, showPages: boolean, marginPageCount: number, surroundingPageCount: number): PageType[]; type PageType = { type: string; num: number; disabled?: boolean; selected?: boolean; precedesBreak?: boolean; }; export type PageDataProps = { props: { href?: string; rel?: string; 'aria-label'?: string; 'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | boolean; 'aria-hidden'?: boolean; 'aria-disabled'?: boolean; onClick?: (e: React.MouseEvent) => void; as?: string; role?: string; }; key: string; content: string; }; export declare function buildComponentData(page: PageType, hrefBuilder: (n: number) => string, onClick: (e: React.MouseEvent) => void): PageDataProps; export {}; //# sourceMappingURL=model.d.ts.map