đź”® Sanity Create is here. Writing is reinvented. Try now, no developer setup

Adding custom block content component type to Sanity Studio

6 replies
Last updated: Jun 23, 2023
Hello team, had a quick question, how do I add a completely custom block content component type to my sanity studio? Is there a guide for this?
Jun 23, 2023, 1:25 PM
The ones I have in the screenshot are plugins I installed, but we have our own types of objects that we have serializers for already.
Jun 23, 2023, 1:25 PM
Need to be able to paste a JSON file into the editor that will be passed to our serializer component
Jun 23, 2023, 1:26 PM
You can probably follow https://www.sanity.io/docs/portable-text-editor-configuration . My guess is you could paste the json into the code and it should work for you
Jun 23, 2023, 1:33 PM
Ah thanks
user P
! I'll give it a try
Jun 23, 2023, 1:34 PM
Then you’ll just need to grab that type on the front end and use your component to render it
Jun 23, 2023, 1:35 PM
It worked out! Thanks again
Jun 23, 2023, 3:01 PM

Sanity– build remarkable experiences at scale

Sanity is a modern 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?