<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) &gt; [setSelectedPrompt](./x-components.relatedpromptsmutations.setselectedprompt.md)

## RelatedPromptsMutations.setSelectedPrompt property

Sets the selected related prompt.

**Signature:**

```typescript
setSelectedPrompt: (index: number) => void;
```
