@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
23 lines (22 loc) • 962 B
TypeScript
import type { ReactNode } from 'react';
export type PaginationIndicatorElement = Record<string, unknown> | ReactNode | (() => 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: 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: ReactNode): this;
update(content: ReactNode): this;
}
export declare function isTrElement(Element: any): boolean;
export declare function preparePageElement(Element: any, includeClassName?: string): any;