Accessing root document properties in custom input element in

3 replies
Last updated: Aug 19, 2020
I have a custom input. Now I want to differ the available options it presents based on properties in the root document being edited. Is this possible? E.g. can I somehow access the root document inside a custom input element?
Aug 19, 2020, 10:53 AM
Nevermind, I'm reading the docs 😳
Aug 19, 2020, 11:00 AM
Aug 19, 2020, 11:01 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?