UNPKG

588 BTypeScriptView Raw
1import React from 'react';
2import { Element, Text } from 'slate';
3import { RenderLeafProps, RenderPlaceholderProps } from './editable';
4declare const MemoizedLeaf: React.MemoExoticComponent<(props: {
5 isLast: boolean;
6 leaf: Text;
7 parent: Element;
8 renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
9 renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
10 text: Text;
11}) => JSX.Element>;
12export declare const DefaultLeaf: (props: RenderLeafProps) => JSX.Element;
13export default MemoizedLeaf;
14//# sourceMappingURL=leaf.d.ts.map
\No newline at end of file