Skip to content
[Logo] [Logo]

Text Block Demo

!Note: this piece of documentation is auto-generated from blocks/TextBlock/README.md.

Renders a rich text (Structured Text) field, with nested blocks and internal links.

Features

  • Renders a rich text component as HTML, with support for headings, lists, bold, italic, emphasized text, etc.

  • Renders nested blocks using <Blocks />, so it supports any Block.

  • Renders internal links using <LinkToRecord />.

  • Renders headings with a custom component to avoid having multiple H1's on the page.

  • Passes Custom Text Styles defined in DatoCMS to the appropriate nodes so they can be styled with CSS.


This is a text block

The text within a text block can be formatted

It supports headings

  • It supports lists

  • with

  • items

And much more

It also supports custom text styles

In both headings and paragraphs