# Spacer

A widget that doesn't display anything but takes up space.

Extends: Spacer
Implements: IWidget

- Source: [`aws-cloudwatch/lib/layout.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudwatch/lib/layout.ts#L182)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const spacer = new cloudwatch.Spacer(/* all optional props */ {
  height: 123,
  width: 123,
});
```

## Initializer

```ts
new Spacer(props?: SpacerProps)
```

## Properties

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

- `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.
