> For the complete documentation index, see [llms.txt](https://docs.wirebootstrap.com/gentelella/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wirebootstrap.com/gentelella/components/compare-kpi.md).

# Compare KPI

![Gentelella Compare KPI](https://3673381106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzTHDZFPY1cn0SmL6dNak%2Fuploads%2F4lXD4dgHRW7h2dhe1oBX%2Fimage.png?alt=media\&token=ff75f332-b056-4dd2-b45c-2a7d73f009a1)

The [Compare KPI](https://colorlib.com/polygon/gentelella/index.html) component is native to the Gentelella theme.  It displays an actual metric value and highlights how that metric has performed against a benchmark.

## Library

The Compare KPI component is located in the Gentelella for WireBootstrap library file located at `\lib\gentelella`.

## Class

The Compare KPI extends the [wire.ui.component](https://docs.wirebootstrap.com/wirebootstrap/reference/wire.ui/wire.ui.component) class.  As such, it inherits all the base functionality of that class.

To create a new instance of the Compare KPI component, use the `wire.gentelella.kpiCompare` class.

```javascript
const kpi = new wire.gentelella.kpiCompare();
```

## Example

An example that demonstrates the Compare KPI component can be found in the Gentelella for WireBootstrap project at `\pages\kpi.html`.
