Skip to content

Document field - How to use Custom Components and Images #485

Answered by simonswiss
NeeshSamsi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

I have just added some documentation on the document field's Component Blocks on Friday — probably 1 day after you posted this (and I only read this now on our Australian Monday morning) 😅

https://keystatic.com/docs/fields/document#component-blocks

To enable images in your blog post's document field, you can add the images: true as mentioned here.

You can then use the DocumentRenderer from @keystatic/core/renderer to display a custom component when this component block is matched.

We'll try to provide "real world" examples of how to use this really soon!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NeeshSamsi
Comment options

@simonswiss
Comment options

@NeeshSamsi
Comment options

Answer selected by NeeshSamsi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants