Separator
A 1px rule that splits sections. Horizontal by default, decorative so it stays out of the accessibility tree.
Horizontal
Vertical
The parent must be a flex row with a height. The rule stretches with self-stretch.
Orientation
Best practices
- Separate sibling blocks, not every line. Space plus type already groups most copy.
- Default
decorativeis correct for visual rules. Set:decorative="false"only when the split is a real landmark. - Vertical separators need a flex parent with a height. A block parent collapses the 1px column to nothing.
- Color is
--ds-gray-alpha-400. Do not recolor it per section. - Menus and toolbars can use a short vertical rule. Page layout uses a full-width horizontal one.