LE

Lexical

lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessible and performance.

Tables
react
lexical
editor
contenteditable
rich-text
Tables
javascript
npm
frontend
open source
Stars
24k
Weekly
4.7M
Open issues
299
Bundle
~25 kB

Installation

npm install lexical

Code example

import { useLexical } from "lexical";

const rows = [
  { id: 1, name: "Ada", role: "Engineer" },
  { id: 2, name: "Linus", role: "Maintainer" },
];

export function Example() {
  const table = useLexical({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
  return <pre>{JSON.stringify(table, null, 2)}</pre>;
}

Pros & cons

Pros

  • Actively maintained by fantactuka
  • 4.7M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 299 open issues on GitHub

FAQs

Alternatives & similar libraries