Skip to content

Divider

Separates related content regions without introducing a new surface.

Design

Functional preview

Running with stable DS HTML and CSS, without a component JavaScript runtime.

Loading functional preview…

Contexts · HTML/CSS/JS

Horizontal and vertical separators rendered with stable HTML and CSS.

Loading functional preview…

Anatomy


1 2 3
1 Separator element (.ds-divider) — use <hr> for semantic separation; mark it as decorative when it is only visual.
2 Orientation — horizontal by default; vertical with .ds-divider--vertical.
3 Border token — uses semantic divider/border color, not hardcoded color.

Horizontal divider

The default divider spans the full width of its container and adds vertical separation between content.

Content above the divider


Content below the divider

In a list

Dividers between list items create visual grouping.

Notifications

Manage your notification preferences


Privacy

Control who can see your profile


Security

Two-factor authentication and password

Vertical divider

Use ds-divider--vertical inside a flex container to separate items horizontally.

Left
Center
Right

In a toolbar

Vertical dividers separate groups of actions in a toolbar.


Token mapping

PropertyTokenCSS variable
line colorcomponent.divider.line.color.default--ds-divider-line-color-default
line thicknesscomponent.divider.line.thickness.default--ds-divider-line-thickness-default
line radiuscomponent.divider.line.radius.default--ds-divider-line-radius-default