> For the complete documentation index, see [llms.txt](https://ainur.gitbook.io/unideck-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ainur.gitbook.io/unideck-docs/reference-and-spec/widgets/counter.md).

# Counter

The **Counter Widget** in UniDeck is a versatile tool designed to help you monitor and manage various activities by keeping a count of occurrences. Whether you're tracking habits, chores, or any countable task, this widget offers a straightforward solution to stay organized and motivated.

### Widget Sizes

To accommodate different dashboard layouts and user preferences, the Counter Widget is available in three sizes:

* **Extra Small**: Ideal for minimalistic dashboards where space is at a premium.
* **Small**: Balances visibility and space, suitable for standard displays.
* **Medium**: Provides a more prominent display for easier readability and interaction.

<table data-card-size="large" data-view="cards" data-full-width="true"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center">Extra Small</td><td><a href="/files/Jo7fobwievoBUggmMNBI">/files/Jo7fobwievoBUggmMNBI</a></td></tr><tr><td align="center">Small</td><td><a href="/files/5LqdHBe7LP7VYklmH1Gu">/files/5LqdHBe7LP7VYklmH1Gu</a></td></tr><tr><td align="center">Medium</td><td><a href="/files/JzjDgMzr9qG189ALxFAD">/files/JzjDgMzr9qG189ALxFAD</a></td></tr></tbody></table>

### Configuration Options

Personalize the Counter Widget to align with your specific tracking needs through the following configurable settings:

* **Title**: Assign a descriptive name to identify the purpose of the counter.
* **Goal (Number)**: Set a target value you aim to reach, aiding in goal-oriented tracking.
* **Step (Number)**: Define the increment value for each count, allowing flexibility in tracking units.
* **Unit**: Specify the measurement unit (e.g., steps, tasks, sessions) to provide context to the count.
* **Background Gradient**: Choose from a selection of aesthetically pleasing gradients to customize the widget's appearance, enhancing visual appeal.

### Interaction and Context Menu

The Counter Widget is designed for intuitive use:

* **Incrementing the Counter**: Click on the widget to increase the count by the defined step value, making it easy to log progress.
* **Accessing the Context Menu**: Right-click on the widget to open the context menu, which offers options to:
  * **Change Widget Size**: Adjust the display size (Extra Small, Small, Medium) to fit your dashboard layout.
  * **Open Configuration Modal**: Access the settings to modify the widget's title, goal, step, unit, and background gradient, allowing for dynamic updates as your tracking needs evolve.

By integrating the Counter Widget into your UniDeck dashboard, you can effectively monitor your progress in various activities, fostering accountability and encouraging the achievement of your personal or professional goals.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ainur.gitbook.io/unideck-docs/reference-and-spec/widgets/counter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
