# IWidget

A single dashboard widget.

Extends: IWidget
Implemented by: AlarmStatusWidget, AlarmWidget, Column, ConcreteWidget, CustomWidget, GaugeWidget, GraphWidget, LogQueryWidget, Row, SingleValueWidget, Spacer, TableWidget, TextWidget

- Source: [`aws-cloudwatch/lib/widget.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudwatch/lib/widget.ts#L13)
- Type last changed: v2.93.0 · 23 Aug 2023

## Properties

- `height`: number — The amount of vertical grid units the widget will take up.

- `warnings`: string[] — - use warningsV2

- `warningsV2`: { [key: string]: string } — Any warnings that are produced as a result of putting together this widget.

- `width`: number — The amount of horizontal grid units the widget will take up.

## Methods

- `position(x: number, y: number): void` — Place the widget at a given position.

- `toJson(): any[]` — Return the widget JSON for use in the dashboard.
