notion-block-renderer
Version:
Notion Block to React Components.
19 lines (18 loc) • 614 B
TypeScript
/// <reference types="react" />
import { AnnotationType, RichTextType } from "./types/types";
export declare function annotationToClassName(annotations: AnnotationType, prefix?: string): string;
export declare const Context: import("react").Context<{
prefix: string;
blockPrefix: string;
blocksPrefix: string;
isCodeHighlighter: boolean;
syntaxHighlighterCSS: {
[key: string]: import("react").CSSProperties;
};
}>;
/**
*
* @param richTextArr - array of rich_text objects
* @returns joined text
*/
export declare const getJoinedRichText: (richTextArr: RichTextType[]) => string;