UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

26 lines (25 loc) 1.01 kB
/** * Web Pagination Helpers */ import React from 'react'; export type PaginationIndicatorElement = Record<string, unknown> | React.ReactNode | (() => React.ReactNode) | string; export type PaginationIndicatorProps = { indicatorElement?: PaginationIndicatorElement; }; export declare const PaginationIndicator: ({ indicatorElement, ...props }: PaginationIndicatorProps) => import("react/jsx-runtime").JSX.Element; export declare class ContentObject { content: React.ReactNode | null; pageNumber: number; hasContent: boolean; onInsert?: (obj: ContentObject) => void; onUpdate?: (obj: ContentObject) => void; [key: string]: unknown; constructor({ pageNumber, ...props }: { pageNumber: number; [key: string]: unknown; }); insert(content: React.ReactNode): this; update(content: React.ReactNode): this; } export declare function isTrElement(Element: any): boolean; export declare function preparePageElement(Element: any, includeClassName?: string): any;