A view is the rendering primitive in Zenbu.js. Every page your app renders is a view, including the main application itself, which is a view calledDocumentation Index
Fetch the complete documentation index at: https://zenbulabs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
entrypoint defined by your uiEntrypoint config.
The entrypoint view runs directly in the renderer process. Additional views run in out of process iframes, and connect to the same RPC, events, and database.
Additional views are useful for:
- Letting a plugin embed content into your app.
- Isolating heavy features so a slow render in one view doesn’t block the rest of the app.
- Letting teams or plugins develop parts of the app independently.
Registering a view
From a service, useViewRegistryService to register a view type:
index.html and a main.tsx that mounts a React tree wrapped in <ZenbuProvider>.
Embedding a view
Reading view args
Inside the child view, useuseViewArgs to read the args passed by the parent:
args, the hook re-renders with the new values.
