UNPKG

contenido

Version:

Contenido is a library with a set of tools to help you create your own rich text editor on top of draft-js without thinking about how to handle things.

9 lines (8 loc) 472 B
import type { FC } from 'react'; import type { ContentBlock } from 'draft-js'; import type { AtomicProps, AtomicWrapperProps } from '../../types'; declare const blockRendererFn: (AtomicWrapper: FC<AtomicWrapperProps>, callback?: ((content: ContentBlock) => void) | undefined) => (content: ContentBlock) => { component: (atomicProps: AtomicProps) => import("react/jsx-runtime").JSX.Element; editable: boolean; } | undefined; export default blockRendererFn;