Put it between two groups. Add a label as its children.
chapter-break.tsx
DecorativeSeparator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | 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. |
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. |
Built with
Installs with Decorative Separator
- Components
- Separator



