Skip to content

Function: Suggestion()

ts
function Suggestion(props: SuggestionBlockProps): Block;

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

Experimental

Suggestion — a single clickable prompt chip. Pass a value (the suggestion text) and optionally name (writes to state[name] on click) and/or resolve (resolves the current render with {suggestion, data} on click).

Parameters

ParameterType
propsSuggestionBlockProps

Returns

Block

Example

ts
Suggestion({value: 'Tell me a joke', resolve: true});
Suggestion({value: 'Summarize this', name: 'prompt'});

Matterway Assistant SDK Documentation