Looking for a "Read More" component for the block editor.

3 replies
Last updated: Jun 21, 2023
I am looking for a “Read More” component that an editor can drag into the block editor to give a natural break. I’d eventually want on the frontend for the rest of the content to hide, so a user can click on Read More to reveal content. Before I set out trying to build such a thing, wanted to check in with the hive mind to see if there’s something like this already available?
Jun 21, 2023, 8:56 AM
Jun 21, 2023, 8:57 AM
haha brilliant!
Jun 21, 2023, 8:58 AM
It uses the deprecated block-content-to-react package, but shouldn’t be too hard to translate to the new
@portabletext/react
package. Mostly the props that have changed names.
Jun 21, 2023, 8:59 AM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?