Skip to content

Function: ToastNotification()

ts
function ToastNotification(props: UiToastNotificationProps): Block;

Defined in: src/renderer/blocks/index.ts:1201

Auto-dismissing toast notification. Resolves the parent render session via the resolve callback when the user dismisses (or after duration).

Parameters

ParameterType
propsUiToastNotificationProps

Returns

Block

Example

ts
ToastNotification({
  title: 'Saved',
  text: 'Your changes are live.',
  duration: 4000,
});

Matterway Assistant SDK Documentation