Skip to content

VexAccessProvider

VexAccessProvider<TSubjects>(props): Element

Defined in: packages/react/src/context/VexAccessContext.tsx:34

Wrap the admin UI; the app supplies access from a "use client" import of ~/auth/access so its callbacks survive into the client bundle.

TSubjects extends Record<string, SubjectEntry> = Record<string, SubjectEntry>

The access matrix to provide (optional — omit to leave RBAC unconfigured), and the subtree that consumes it.

VexAccessConfig<TSubjects, readonly AccessResource[], string, string | undefined, Partial<Record<string, CustomActionsInput>>>

ReactNode

Element

The context provider wrapping props.children.