TextBlockRenderer
stableRenders rich text content from the Lexical editor.
Source: packages/ui/src/components/blocks/TextBlockRenderer.tsx
Accessibility
No accessibility audit yet. Run the a11y pipeline to generate results.
Playground
Interactive playground coming soon for this component.
tsx
import { TextBlockRenderer } from "@itu/ui"; <TextBlockRenderer />
3 lines of tsx code
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| block | TextBlockData | — | Required | The text block data from Payload CMS |
| locale | string | — | Required | BCP 47 locale string used for localizing content |
| renderRichText | ((data: any) => ReactNode) | — | Optional | Custom render function for rich text content |