Skip to content

UI

Single public entry point for the SDK's UI surface.

Re-exports everything skill authors need to render UI from one module:

  • The renderer entry (render) and session/options types
  • Every block factory (PascalCase Bubble/InputField/… and camelCase bubble/inputField/… aliases for back-compat)
  • Every template helper (message, success, failure, …)
  • The Ui* React component shells (UiBadge, UiBubble, …) that the renderer registers at mount time
  • Hooks (useUIState, useAsyncProp, …) and the per-session state types
  • Block/ChildBlock types

Mapped to @matterway/sdk/UI in package.json#exports.

Example

ts
import {render, bubble, inputField, navigationBar} from '@matterway/sdk/UI';

const {data, button} = await render(ctx, bubble([
  inputField({name: 'email'}),
  navigationBar({buttons: [{label: 'Go', value: 'go'}]}),
]));

Enumerations

Interfaces

Type Aliases

Variables

Functions

Matterway Assistant SDK Documentation