useVexDocument
useVexDocument():
VexDocumentState
Defined in: packages/react/src/documents/VexDocumentContext.tsx:72
S5 context hook — exposes the current edit view’s document state to a
built-in or third-party edit.* slot contribution. Backed by
VexDocumentContext, mounted by CollectionEditView/GlobalEditView.
Experimental: breaking changes are still possible before this stabilizes.
Returns
Section titled “Returns”The current VexDocumentState.
Throws
Section titled “Throws”When rendered outside a VexDocumentProvider.