@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 649 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) > [setSelectedPrompt](./x-components.relatedpromptsmutations.setselectedprompt.md)
## RelatedPromptsMutations.setSelectedPrompt() method
Sets the selected related prompt.
**Signature:**
```typescript
setSelectedPrompt(index: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The new selected related prompt. |
**Returns:**
void