Skip to content

Variable: PlayUIProvider

API / @xmachines/play-solid / PlayUIProvider

const PlayUIProvider: Component<PlayUIProviderProps>;

Defined in: packages/play-solid/src/PlayUIProvider.tsx:84

The composite provider: ActorProvider and JSONUIProvider.

It gives you the complete stack of the JSON render context:

  • ActorContext, which holds the actor instance, through ActorProvider
  • ViewContext, which holds the spec, the handlers, and the registry, through ActorProvider
  • StateProvider, ActionProvider, VisibilityProvider, and ValidationProvider, through JSONUIProvider
  • ConfirmDialogManager, through JSONUIProvider

Example

<PlayUIProvider actor={myActor} registryResult={registryResult} navigate={navigate}>
<PlayRenderer />
</PlayUIProvider>