Skip to content
Gelatin UIAlpha

Decorative Separator

Free

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.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

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

chapter-break.tsx

DecorativeSeparator

<div>
PropTypeDefaultDescription
classNamestring—
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).
animatedbooleanfalsesquiggle and zigzag only: the wave slides along the line, forever. It is decoration: use it for a live or busy section. Default: false.
childrenReactNode—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.
From Base UISeparatorBase UI docs
orientation"horizontal""vertical""horizontal"The orientation of the separator.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • 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.
  • For an everyday line in a form, a menu, or a toolbar, use a Separator.

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.

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

Built with

Installs with Decorative Separator

Components
Separator
  1. AddedDecorative Separator, with Separator.
Open the release