Skip to content

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.

VexDocumentState

The current VexDocumentState.

When rendered outside a VexDocumentProvider.