UNPKG

slate-react

Version:

Tools for building completely customizable richtext editors with React.

10 lines 330 B
/// <reference types="react" /> /** * A React context for sharing the `readOnly` state of the editor. */ export declare const ReadOnlyContext: import("react").Context<boolean>; /** * Get the current `readOnly` state of the editor. */ export declare const useReadOnly: () => boolean; //# sourceMappingURL=use-read-only.d.ts.map