A horizontal line fills the width, and the gap of the parent sets the space on each side.
docs-links.tsx
Separator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| variant | "dashed""dotted""double""fade""solid" | "solid" | The line pattern. Default: solid. |
| tone | "default""destructive""info""muted""primary""success""warning" | "default" | The color, from the shared tokens. Default: default (the border color). |
| 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. |





