Skip to content

Function: feedback()

ts
function feedback(ctx: Context, options?: FeedbackOptions): Promise<void>;

Defined in: src/renderer/templates/feedback.ts:40

Displays feedback collection form.

Shows text input and badge options. Localized for English/German. Sends SUGGESTION telemetry event on submission.

Parameters

ParameterTypeDescription
ctxContextRender context with telemetry
optionsFeedbackOptionsFeedback configuration

Returns

Promise<void>

Promise resolving when dismissed

Example

ts
import {feedback} from '@matterway/sdk/UI';

await feedback(ctx, {
  feedbackBadgeOptions: ['slow', 'crash', 'not useful']
});

Matterway Assistant SDK Documentation