Skip to content

Function: Confirmation()

ts
function Confirmation(props: UiConfirmationProps): Block;

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

Experimental

Confirmation — inline tri-state approval prompt. Renders a message with Approve / Reject buttons; once the user picks, the block re-renders as an "approved" or "rejected" status row. Container-free — drop it inside Bubble, Modal, Group, or any other surface.

Parameters

ParameterType
propsUiConfirmationProps

Returns

Block

Example

ts
Confirmation({
  name: 'deleteFile',
  message: 'Delete /tmp/example.txt?',
  onApprove: () => console.log('approved'),
  onReject: () => console.log('rejected'),
});

Matterway Assistant SDK Documentation