RichTextRenderer
stableRenders Lexical JSON rich text to styled HTML.
Source: packages/ui/src/components/rich-text/RichTextRenderer.tsx
Accessibility
No accessibility audit yet. Run the a11y pipeline to generate results.
Playground
Interactive playground coming soon for this component.
tsx
import { RichTextRenderer } from "@itu/ui"; <RichTextRenderer />
3 lines of tsx code
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| content | any | — | Required | The rich text content from Payload CMS Lexical editor |
| size | enum | lg | Optional | Size variant for the prose styling |
| className | string | — | Optional | Additional CSS classes to apply to the wrapper |
| renderContent | ((data: any) => ReactNode) | — | Optional | Custom render function for rich text content. If not provided, content is rendered as-is. |