🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

How to access enclosing document in custom input component in V3

2 replies
Last updated: Jun 20, 2023
How can I access the enclosing document in a custom input component in V3? It seems that in V2 the document was passed in as a prop, but that doesn’t seem to be the case in V3 anymore.
Jun 20, 2023, 3:35 AM
We’re using the
component, but I also tried changing to
and it made no difference.
Jun 20, 2023, 3:40 AM
looks like I can get this information using
Jun 20, 2023, 4:36 AM

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?