@bettaibi/react-blocknote
Version:
A modern, versatile rich text editor component for React applications with an elegant UI and Notion-like functionality. Supports both React 18 and React 19.
14 lines (13 loc) • 627 B
TypeScript
import React from "react";
import { Editor, EditorOptions } from "@tiptap/react";
import "../styles/external-styles.css";
export interface BlockNoteProviderProps extends Partial<EditorOptions> {
children: React.ReactNode;
value?: string;
onChange?: (value: string) => void;
placeholder?: string;
outputFormat?: "html" | "markdown";
readOnly?: boolean;
}
export declare function BlockNoteProvider({ children, value, onChange, placeholder, readOnly, outputFormat, ...editorOptions }: BlockNoteProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useBlockNoteContext(): Editor;