UNPKG

mui-tiptap

Version:

A Material-UI (MUI) styled WYSIWYG rich text editor, using Tiptap

16 lines (15 loc) 645 B
/// <reference types="react" /> import type { Editor } from "@tiptap/react"; export type RichTextEditorProviderProps = { editor: Editor | null; children: React.ReactNode; }; /** * Makes the Tiptap `editor` available to any nested components, via the * `useRichTextEditorContext()` hook so that the `editor` does not need to be * manually passed in at every level. * * Required as a parent for most mui-tiptap components besides the all-in-one * `RichTextEditor` and `RichTextReadOnly`. */ export default function RichTextEditorProvider({ editor, children, }: RichTextEditorProviderProps): import("react/jsx-runtime").JSX.Element;