GitHubopen_in_new

Divider ​

Dividers separate related content into clear groups.

Section oneSection two

Examples ​

Default ​

AccountPreferences

Inset ​

Vertical ​

Custom Spacing ​

HeaderContent

Reference ​

Anatomy

ElementPartSelector
<div>
root
[data-scope="divider"][data-part="root"]
left_clickLMBCopy

Props

NameDescriptionDefaultControl
orientationOptional

Direction of the divider line.

horizontalvertical
"horizontal"
insetOptional

Apply inset spacing on either side of the divider.

nonestartendboth
"none"
thicknessOptional

Line thickness. Such as '1px' or '0.125rem'.

string | undefined
undefined
spacingOptional

Symmetric space around the divider. Such as '0.75rem'.

string | undefined
undefined

Styling4

TokenDescription
--md-divider-colorColor
Fallbackvar(--md-sys-color-outline-variant)

Controls color.

--md-divider-insetLayout
Fallback--dp(16)

Controls inset.

--md-divider-spacingStyle
Fallback0

Controls spacing.

--md-divider-thicknessLayout
Fallback0.0625rem

Controls thickness.