Divider
Dividers separate related content into clear groups.
Section oneSection two
Anatomy
| Element | Part | Selector |
|---|---|---|
<div> | root | [data-scope="divider"][data-part="root"]LMBCopy |
Props
| Name | Description | Default | Control |
|---|---|---|---|
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 |
Events0
No events documented.
Slots0
No slots documented.
Styling4
| Token | Description |
|---|---|
--md-divider-colorColorFallback var(--md-sys-color-outline-variant) | Controls color. |
--md-divider-insetLayoutFallback --dp(16) | Controls inset. |
--md-divider-spacingStyleFallback 0 | Controls spacing. |
--md-divider-thicknessLayoutFallback 0.0625rem | Controls thickness. |
Examples
Default
AccountPreferences
Inset
Vertical
Custom Spacing
HeaderContent