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.
Type Parameters
Section titled “Type Parameters”TSubjects
Section titled “TSubjects”TSubjects extends Record<string, SubjectEntry> = Record<string, SubjectEntry>
Parameters
Section titled “Parameters”The access matrix to provide (optional — omit to leave RBAC unconfigured), and the subtree that consumes it.
access?
Section titled “access?”VexAccessConfig<TSubjects, readonly AccessResource[], string, string | undefined, Partial<Record<string, CustomActionsInput>>>
children
Section titled “children”ReactNode
Returns
Section titled “Returns”Element
The context provider wrapping props.children.