Appearance
renderer
Public entry for the page-injected renderer — Layer 3.
Mapped to @matterway/sdk/UI in the SDK's package.json exports. Surfaces the everyday skill-authoring API:
render()— the entry point that mounts a Block tree onctx.pageand resolves when the user submits.- Block functions (
Bubble,InputField,NavigationBar, …). - Template helpers (
message,success,failure, …). - Types:
Block,ChildBlock,RenderSession,RenderOptions.
Low-level / advanced APIs (createRenderer, fromPuppeteer, PagePort, the Layer 2 Renderer/RendererSession interfaces) live on @matterway/sdk/UI/renderer. Skill authors should not need them.
Example
ts
import { render, Bubble, InputField, NavigationBar } from '@matterway/sdk/UI';
const {data, button} = await render(ctx, Bubble([
InputField({name: 'email'}),
NavigationBar({buttons: [{text: 'Go', value: 'go'}]}),
]));References
updateFileUploadState
Re-exports updateFileUploadState