# TextWidgetBackground

Background types available.

- 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#L6)
- 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',
  background: cloudwatch.TextWidgetBackground.TRANSPARENT
}));
```

## Members

| Member | Description |
| --- | --- |
| `SOLID` | Solid background. |
| `TRANSPARENT` | Transparent background. |

## Referenced by

- [`TextWidgetProps`](/v2/docs/aws-cdk-lib.aws_cloudwatch.TextWidgetProps).background
