UNPKG

slate-react

Version:

Tools for building completely customizable richtext editors with React.

19 lines • 927 B
import React from 'react'; import { JSX } from 'react'; import { Element as SlateElement, DecoratedRange } from 'slate'; import { RenderChunkProps, RenderElementProps, RenderLeafProps, RenderPlaceholderProps, RenderTextProps } from './editable'; declare const MemoizedElement: React.MemoExoticComponent<(props: { decorations: DecoratedRange[]; element: SlateElement; renderElement?: (props: RenderElementProps) => React.JSX.Element; renderChunk?: (props: RenderChunkProps) => React.JSX.Element; renderPlaceholder: (props: RenderPlaceholderProps) => React.JSX.Element; renderText?: (props: RenderTextProps) => React.JSX.Element; renderLeaf?: (props: RenderLeafProps) => React.JSX.Element; }) => JSX.Element>; /** * The default element renderer. */ export declare const DefaultElement: (props: RenderElementProps) => JSX.Element; export default MemoizedElement; //# sourceMappingURL=element.d.ts.map