---
updatedAt: 2025-06-09T23:15:49.000Z
agentTools:
  projectIndex: https://developers.viral-loops.com/llms.txt
---

# Leaderboard Widget

The Leaderboard Widget adds a competitive edge to your referral dashboard by displaying the top participants based on referral performance. It showcases the top X users (where X is configurable) in a clear and engaging layout.

The widget is derived from the [Sharing Widget](https://developers.viral-loops.com/docs/form-widget-1) but can be customized individually.

After completing the [Installation](https://developers.viral-loops.com/docs/overview-1) step, use the following snippet to display the Leaderboard Widget:

```html HTML
<leaderboard-widget></leaderboard-widget>
```

If you are installing multiple campaigns on the same page make sure you also add the Campaign ID on the widget:

```html
<leaderboard-widget ucid='Your Campaign ID'></leaderboard-widget>
```