---
title: "Spacer"
description: "Pushes siblings apart."
---

> Documentation Index
> Fetch the complete documentation index at: https://gistui.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Spacer

```gistui
root = Row(Header("Team", size:sm), Spacer(), Button("Invite", icon:users))
```

## Signature

This is the line a model reads in the system prompt.

```gistui
Spacer()
```

- **Group:** Layout
- **Children:** No
- **Positional arguments:** none

## Props

This component takes no props.

## Use your own component

Keep the name and schema, swap what is drawn. The prompt and the model's output do not change.

### React

```tsx
import { ui } from "@gistui/react/ui";

const lib = ui.extend({ Spacer: MySpacer });
<GistUI library={lib} stream={response.body} />;
```
### Vue

```vue
<GistUI :source="answer" :components="{ Spacer: MySpacer }" />
```
### Svelte

```svelte
<GistUI source={answer} components={{ Spacer: MySpacer }} />
```
### Solid

```tsx
<GistUI source={answer()} components={{ Spacer: MySpacer }} />
```
### Vanilla

```ts
import { ui } from "@gistui/vanilla/ui";

const lib = ui.extend({ Spacer: (ctx) => ({ el: myElement(ctx) }) });
```

See [Custom components](/docs/guides/custom-components/) for the full contract. Style hook: `[data-gistui="Spacer"]`.

Source: https://gistui.com/docs/components/layout/spacer/index.mdx
