Lexical to React JSX

Renders Payload Lexical rich text content as React JSX with custom elements

Community 8 79/wk MIT v1.9.0

Installation

pnpm add @zapal/payload-lexical-react

About

Lexical to React JSX turns Payload rich text fields into React elements. You pass the serialized Lexical content from a rich text field to one component and get the body back as regular JSX, which works in server-rendered pages without injecting HTML strings. Headings, paragraphs, lists, links and other elements can each be replaced with your own component, and text marks like bold or italic can be restyled to match your design system. The default output carries only basic styling, so the markup takes on your site's look without fighting leftover defaults.

Package info

Package name
@zapal/payload-lexical-react
Latest version
1.9.0
Unpacked size
25 kB
License
MIT
Weekly downloads
79
Last publish
Apr 3, 2026

More from zapal-tech

View profile

Svelte component that adds a Payload admin toolbar to your front-end pages

Svelte 5 live preview bindings that update a page as editors change a Payload document

Generates BlurHash image placeholders automatically for uploads in chosen collections

React hook and refresh component for Payload Live Preview in frontend apps

Vue composable that wires a Payload Live Preview into a Vue frontend

React admin bar that puts Payload editing controls on your frontend pages

Client SDK that streams live Payload draft edits into a frontend preview

Renders Lexical rich text content from Payload in Astro sites

Manifest, linter and Payload block generator for a design system's components