---
updatedAt: 2025-05-27T21:13:55.000Z
agentTools:
  projectIndex: https://developer-docs.rivo.io/llms.txt
---

# closeWidget

Closes the floating Loyalty widget on the frontend. This function does not accept any parameters and does not return any data.

```javascript
RivoJS.closeWidget();
```

**Usage**

Call this function when you want to programmatically close the Loyalty App widget. For example, this could be useful if you want to close the widget after a certain time period, or in response to some other user interaction in your implementation.