# TextWidgetProps

Properties for a Text widget.

Extends: TextWidgetProps
Used as props by: TextWidget

- Source: [`aws-cloudwatch/lib/text.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts#L20)
- Type last changed: v2.54.0 · 7 Dec 2022

## Example

```ts
declare const dashboard: cloudwatch.Dashboard;

dashboard.addWidgets(new cloudwatch.TextWidget({
  markdown: '# Key Performance Indicators'
}));
```

## Properties

- `background`: [TextWidgetBackground](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.TextWidgetBackground.html) = solid — Background for the widget.

- `height`: number = 2 — Height of the widget.

- `markdown`: string (required) — The text to display, in MarkDown format.

- `width`: number = 6 — Width of the widget, in a grid of 24 units wide.
