@lexical-devtools/react
TypeScript icon, indicating that this package has built-in type declarations

0.1.11 • Public • Published

@lexical-devtools/react

A React plugin designed to use with Lexical DevTools Extension to inspect Lexical.js editor state within React applications.

Note This plugin is intended to be used with the Lexical DevTools Extension, available on the Chrome Web Store. You can download it here.

Usage

Installation

npm i @lexical-devtools/react

Import DevToolsPlugin inside your LexicalComposer component

import { LexicalComposer } from "@lexical/react/LexicalComposer";
import DevToolsPlugin from "@lexical-devtools/react";

export default function Page() {
  const config = {
    // ...
  };

  return (
    <LexicalComposer initialConfig={config}>
      // ...
      <DevToolsPlugin />
    </LexicalComposer>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lexical-devtools/react

Weekly Downloads

317

Version

0.1.11

License

MIT

Unpacked Size

15.1 kB

Total Files

12

Last publish

Collaborators

  • nimeshnayaju