UNPKG

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