slate-react
Version:
Tools for building completely customizable richtext editors with React.
15 lines • 604 B
TypeScript
import React from 'react';
import { JSX } from 'react';
import { Element, Text } from 'slate';
import { RenderLeafProps, RenderPlaceholderProps } from './editable';
declare const MemoizedLeaf: React.MemoExoticComponent<(props: {
isLast: boolean;
leaf: Text;
parent: Element;
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
text: Text;
}) => JSX.Element>;
export declare const DefaultLeaf: (props: RenderLeafProps) => JSX.Element;
export default MemoizedLeaf;
//# sourceMappingURL=leaf.d.ts.map