---
title: "<Spacer>"
description: "Fixed vertical whitespace (a reliable cross-client gap)."
url: https://www.unitpost.com/components/spacer
section: Components
updated: 2026-07-14
---
# <Spacer>

## <Spacer>

> Fixed vertical whitespace (a reliable cross-client gap).

Margins are unreliable across clients, so a Spacer renders as an explicit fixed-height cell.

```tsx
<Spacer height={24} />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `height` (required) | number | 24 | Gap height (px). |

## Related

- [<Markdown>](https://www.unitpost.com/components/markdown): Author rich copy in Markdown — compiled to email-safe HTML.
- [<Code>](https://www.unitpost.com/components/code): A monospace code block — handy for API keys and snippets.
- [<Html>](https://www.unitpost.com/components/html): A raw HTML escape hatch — pasted markup is preserved verbatim (sanitized).
