view
functionDeclare a panel that docks into a workbench container. You hand the host a module reference, not a mount callback. The host owns the React root, mounts your component in a sandboxed renderer webview, and re-renders it on live edits. That webview has no Node access, so it reaches the ext-host half of the same mod through `ctx.action(...)` and shared state, never a shared object. `editorExtension` and `canvasElement` are the renderer-native alternative: they run in the host's own renderer and share its `lexical` and `react` instances. Use `view` when you are drawing the panel yourself. Use treeView when the content is a hierarchy of rows and you want the host's native tree with selection and inline actions. Use `widget` for a surface that floats or lives in its own window instead of docking.
Import
import { view } from '@modular/sdk';Notes
- category
- Authoring