> For the complete documentation index, see [llms.txt](https://docs.pages.revox.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pages.revox.io/angular/widgets.md).

# Widgets

Pages comes with 24 pre-built widget components that you can easily integrate with your dashboards in no time. These can be found in `dashboard/widgets`folder and each widget folder is named after its `@Component`'s `selector.`Widgets are based off [pgcard component](/angular/ui-components/cards.md)&#x20;

## Importing

Widgets are available throughout all the pre-built dashboards via `dashboard.module.ts`. But if you are planning use them outside you will have to import them as below.&#x20;

```typescript
// Using ImageWidgetComponent as an example. Same steps apply to other widgets
import { ImageWidgetComponent } from './widgets/image-widget/image-widget.component';
@NgModule({
  declarations: [ImageWidgetComponent,...]
})
export class AppModule(){}
```

## bar-tile-widget

Features a stacked bar chart made with `echarts` component:

```http
<bar-tile-widget></bar-tile-widget>
```

![](/files/-LE3uGedgx6zvYsP8O9b)

## graph-live-widget

Features a looping vertical slider with stock market updates.&#x20;

```http
<graph-live-widget></graph-live-widget>
```

![](/files/-LE3vDFOtSKNb5F35Hhl)

## graph-options-widget

Features a line chart with toggle buttons.&#x20;

```http
<graph-options-widget></graph-options-widget>
```

![](/files/-LE3vnTkbom6QcNf6Ecw)

## graph-tile-flat-widget

Features a line chart with sales stats.&#x20;

```http
<graph-tile-flat-widget></graph-tile-flat-widget>
```

![](/files/-LE3w4iwxriJBIKJ4i0l)

## graph-tile-widget

Features a line chart with area filled in.&#x20;

```http
<graph-tile-widget></graph-tile-widget>
```

![](/files/-LE3wNQ-4KkuQrYG4qq0)

## graph-widget

Features a line chart with multiple series of data.

```http
<graph-widget></graph-widget>
```

| **Property** | **Description**                                                    | **Type** | **Default** |
| ------------ | ------------------------------------------------------------------ | -------- | ----------- |
| `IsAlt`      | Toggles three boxes with stock trading highlights and a search bar | boolean  | false       |

![](/files/-LE4-cHaZbbDniGBzGtd)

![Default view](/files/-LE3wlZ2eNYaDo0JWEHl)

## image-widget

Features a background image and an text overlay.&#x20;

```http
<image-widget></image-widget>
```

![](/files/-LE4-uEH1uS_3WhL2KSq)

## image-widget-basic

Features a background image and a text overlay. Intended to use for showing minimal content.&#x20;

```http
<image-widget-basic></image-widget-basic>
```

![](/files/-LE40V9OhOCczAacGHj0)

## plain-live-widget

Features a rotating text

```http
<plain-live-widget></plain-live-widget>
```

![](/files/-LE42d6qaKCdfQI-Ci5h)

## plain-widget

Features quick weather info&#x20;

```http
<plain-widget></plain-widget>
```

![](/files/-LE4392656_RO_Z0nnCa)

## progress-tile-flat-widget

Features a large title text and a progress bar

```http
<progress-tile-flat-widget></progress-tile-flat-widget>
```

![](/files/-LE43_2511WoO02WXshT)

## project-progress-widget

Features multiple progress bars in a tab view.&#x20;

```http
<project-progress-widget></project-progress-widget>
```

![](/files/-LE4410oBd5ns0WWU07A)

## quick-stats-widget

Features quick stats in extra large text and a progress bar.

```http
<quick-stats-widget></quick-stats-widget>
```

![](/files/-LE413n52t_6g3110ssV)

## realtime-widget

Designed to show live streaming data in a line chart. Demo widget represents sample data updated using a timer.&#x20;

```http
<realtime-widget></realtime-widget>
```

![](/files/-LE50ftWQX1uFCpnt8is)

## social-image-tile-widget

Shows an image in the style of a social feed post.&#x20;

```http
<social-image-tile-widget></social-image-tile-widget>
```

![](/files/-LE53pZCnCMTtnSP6Ps2)

## social-post-tile-widget

Shows a social post with text and an image.&#x20;

```http
<social-post-tile-widget></social-post-tile-widget>
```

![](/files/-LE56a1Bd4hq64aqYVOl)

## stacked-bar-widget

Features a [pg-tabset](/angular/ui-components/tabs.md) component with stacked bar charts representing multiple data sources for quick comparison. &#x20;

```http
<stacked-bar-widget></stacked-bar-widget>
```

![](/files/-LE59wBp9Q1k3JugSNxc)

## stat-tile-widget

This is also another mini widget similar to `quick-stats-widget` and `progress-tile-flat widget`. Sample widget illustrates stock trading stats &#x20;

```http
<stat-tile-widget></stat-tile-widget>
```

![](/files/-LE5A_cd_XLKlXN3Kb7g)

## table-basic-widget

Features a basic table layout. &#x20;

```http
<table-basic-widget></table-basic-widget>
```

![](/files/-LE5BBHKKVOwLqkJA7zB)

## table-widget

This is another variation of `table-basic-widget.`&#x20;

```http
<table-widget></table-widget>
```

![](/files/-LE5BqRWcuvyVhO9_YCg)

## todo-list-widget

Show todo-list items with checkboxes.&#x20;

```http
<todo-list-widget></todo-list-widget>
```

![](/files/-LE5CTIHanA-vaLC7hOJ)

## weather-widget

Shows weekly weather data together with animated weather icons from [Skycons](https://github.com/darkskyapp/skycons).&#x20;

```http
<todo-list-widget></todo-list-widget>
```

| **Property** | **Description**                                                                                                                                       | **Type** | **Default** |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
| `Type`       | By default weather widget shows two highlighted columns with weather data to the right in extra large screens. Set this to "compact" to disable them. | string   | undefined   |

![With Type option set to "compact"](/files/-LE5Da6gvkCLRN6uR7Xg)

![Default widget](/files/-LE5EQNsAOMaldOa5PSd)

## weekly-sales-widget

This is also another mini widget showing weekly sales data. &#x20;

```http
<weekly-sales-widget></weekly-sales-widget>
```

![](/files/-LE5F5gv91BAtCZzmwbI)
