Sanity Pioneers: Get early access to betas, extra AI credits, and a direct line to the engineering team. Apply now

How to Create Grid or Table Components for Portable Text

6 repliesLast updated: Sep 8, 2021

Anyone done grid-/table- like components for Portable Text?
There is a plugin for table data. see if you can implement that inside portable text
or just use the markdown plugin
user M Do I have to create my own serializer for the type 'table'? Looks like SanityHtmlBuilder fails to do so.
user M Do I have to create my own serializer for the type 'table'? Looks like SanityHtmlBuilder fails to do so.
Yep! You would need to create a custom serializer for it.

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions