Skip to main content

Components

Divider

Divider is used to create a visual separation between content. It is a simple horizontal line that spans the available width.

Usage

HTML

The class name ds-divider is applied directly to the <hr> element. Apply aria-hidden="true" to avoid noise in screen readers.

CSS variables and data attributes

CSS Variables
NameValue
--dsc-divider-border-widthvar(--ds-border-width-default)
--dsc-divider-border-stylesolid
--dsc-divider-border-colorvar(--ds-color-neutral-border-subtle)

No relevant data attributes found.

Edit this page on github.com (opens in a new tab)