Seperator
Horizontal or vertical rule with an optional label, for dividing content and toolbars.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
orientation | SeperatorOrientation | horizontal | Direction of the line. A vertical seperator stretches to its flex row; give it a height elsewhere. |
decorative | boolean | false | Purely visual: removes the `separator` role so screen readers skip it. |
CSS custom properties
Grouped by the element and state they target. Click a group to collapse it; click a name to copy it.
| Name | Type | Default | Description |
|---|---|---|---|
--c2-seperator--thickness | pixel | 1px | |
--c2-seperator--color | color | #e4e4e7 | |
--c2-seperator--style | border-style | solid | `dashed` or `dotted` for a broken line. |
--c2-seperator--spacing | pixel | 0px | Margin on both sides across the line (above and below a horizontal rule). |
--c2-seperator--inset-start | pixel | 0px | Margin before the line along its axis, e.g. to align with list text. |
--c2-seperator--inset-end | pixel | 0px | Margin after the line along its axis. |
--c2-seperator__line-start--flex | flex | 1 | Growth of the segment before the label; `0 0 16px` pins the label near the start. |
--c2-seperator__line-end--flex | flex | 1 | Growth of the segment after the label. |
--c2-seperator__label--gap | pixel | 12px | Space between the label and the lines. |
--c2-seperator__label--color | color | #71717a | |
--c2-seperator__label--font-size | font-size | 12px | |
--c2-seperator__label--font-weight | font-weight | 500 | |
--c2-seperator__label--line-height | line-height | 1.4 | |
--c2-seperator__label--letter-spacing | pixel | — | |
--c2-seperator__label--text-transform | text-transform | none | |