---
url: /api/formats/interactions/src/functions/applySpacing.md
---
[pantoken-root](../../../../index.md) / [formats/interactions/src](../index.md) / applySpacing

# Function: applySpacing()

> **applySpacing**(`host`): `void`

Apply InstUI/CSS spacing attributes on `host` to inline style.

Managed properties are cleared first, so removing an attribute removes its style.

## Parameters

### host

`HTMLElement`

## Returns

`void`
