๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup

Accessing root document properties in custom input element in Sanity.io

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?