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

2.1.23 • Public • Published

lexical

This is a wrapper around the meta lexical library. below is how you install and use it. PRs are welcome.

npm i -S @techstack/lexical

There are two ways to use it the all included solution or the composable way.

All included

import Editor from "@techstack/lexical";

import "@techstack/lexical/css";

<Editor name="editor" onChange={fn} placeholder="" value="" />

Composable way (below is list of included plugins and components)

import Editor from "@techstack/lexical/editor";
import {
pluginName
} from "@techstack/lexical/plugins";
import { Toolbar } from "@techstack/lexical/components";

import "@techstack/lexical/css";

<Editor name="" onChange={} placeholder="" value="">
<Toolbar>
  {toolbarplugins}
</Toolbar>
{non toolbar plugins}
</Editor>

Plugins

list coming soonish

Components

  • Toolbar
  • Divider

Readme

Keywords

none

Package Sidebar

Install

npm i @techstack/lexical

Weekly Downloads

968

Version

2.1.23

License

MIT

Unpacked Size

387 kB

Total Files

149

Last publish

Collaborators

  • the-code-monkey