UNPKG

dropdeck-slate-react

Version:

Tools for building completely customizable richtext editors with React.

16 lines 540 B
import React from 'react'; import { Text, Element } from 'slate'; import { RenderLeafProps } from './editable'; declare const MemoizedLeaf: React.MemoExoticComponent<(props: { isLast: boolean; leaf: Text; parent: Element; renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined; text: Text; }) => JSX.Element>; /** * The default custom leaf renderer. */ export declare const DefaultLeaf: (props: RenderLeafProps) => JSX.Element; export default MemoizedLeaf; //# sourceMappingURL=leaf.d.ts.map