Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Render context with telemetry |
options | FeedbackOptions | Feedback configuration |
Returns
Promise<void>
Promise resolving when dismissed
Example
ts
import {feedback} from '@matterway/sdk/UI';
await feedback(ctx, {
feedbackBadgeOptions: ['slow', 'crash', 'not useful']
});