---
title: "Separator"
description: "A thin line between two parts of a layout."
---

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

# Separator

```gistui
root = Stack("Above the line", Separator(), "Below the line")
```

## Signature

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

```gistui
Separator()
```

- **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({ Separator: MySeparator });
<GistUI library={lib} stream={response.body} />;
```
### Vue

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

```svelte
<GistUI source={answer} components={{ Separator: MySeparator }} />
```
### Solid

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

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

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

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

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