---
title: "Decorative Separator"
description: "A playful line between groups of content: a squiggle, a zigzag, or a stitch. It can move, take a color, and hold a short label."
url: https://gelatinui.com/components/decorative-separator
markdown_url: https://gelatinui.com/components/decorative-separator.md
access: free
install: "npx shadcn@latest add @gelatin-ui/decorative-separator"
registry_item: https://gelatinui.com/r/decorative-separator.json
version: "2026-11-10"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Decorative Separator

> A playful line between groups of content: a squiggle, a zigzag, or a stitch. It can move, take a color, and hold a short label.

Page: https://gelatinui.com/components/decorative-separator

## When to use it

Best for: A line with character between groups of content, in a friendly or personal app.

- Use it where a plain line feels too cold: a journal, a recipe, a newsletter, a chat.
- Use `children` for a label in the middle, such as a date or "New".
- Use `animated` on a squiggle or a zigzag for a live or busy part of the page.
- Use `tone` to color it with the shared tokens.

## When not to use it

- For an everyday line in a form, a menu, or a toolbar, use a [Separator](https://gelatinui.com/components/separator.md).

## Notes for agents

- `variant`: `squiggle` (default), `zigzag`, or `stitch`. `animated` works on `squiggle` and `zigzag` only.
- It has the Separator props: `orientation` and `tone`.
- A label shows only on a horizontal line. A string label is the name that screen readers hear.
- A long label wraps in the middle; the halves of the line keep 16px each at least.
- A vertical line fills the height of its row: set a height on the row.
- The sliding wave stops while the line is off screen or the tab is hidden.

## Anatomy

```text
DecorativeSeparator
```

## API reference

### DecorativeSeparator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `variant` | `"squiggle" \| "stitch" \| "zigzag"` | "squiggle" | The pattern. Default: `squiggle`. |
| `tone` | `"default" \| "destructive" \| "info" \| "muted" \| "primary" \| "success" \| "warning"` | "default" | The color, from the shared tokens, as on Separator. Default: `default` (the border color). |
| `animated` | `boolean` | false | `squiggle` and `zigzag` only: the wave slides along the line, forever. It is decoration: use it for a live or busy section. Default: `false`. |
| `children` | `ReactNode` |  | Content in the middle of a horizontal line: "or", a date, an icon. The line then splits in two halves around it, and a text label is the name that screen readers hear. |

Also takes every prop of Base UI `Separator`: https://base-ui.com/react/components/separator

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| DecorativeSeparator | `decorative-separator` | `data-offscreen` |  |  |

## Usage

Put it between two groups. Add a label as its children.

```tsx title="chapter-break.tsx"
import { DecorativeSeparator } from "@/components/ui/decorative-separator";

export function ChapterBreak() {
  return (
    <DecorativeSeparator variant="zigzag" tone="primary">
      Chapter two
    </DecorativeSeparator>
  );
}
```

## Compose

Rules:

- Group with a Frame (`group-in-frames`): Put related panels in one `Frame` with its header and footer outside the panels, and keep a plain `Card` for one block of content.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/decorative-separator
```

It adds 12 registry items: 11 files, 1115 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Separator](https://gelatinui.com/components/separator.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Separator](https://gelatinui.com/components/separator.md)
- [Frame](https://gelatinui.com/components/frame.md)

## Accessibility

It renders a `separator` role with its orientation.

The two halves around a label are `aria-hidden`; a string label is the name of the separator.

## Motion

| Part | Motion |
| --- | --- |
| Slide | progress · with `animated`, the wave slides one tile in 1.2s, at one speed, while it is on screen |
