Divider
Material Design dividers are thin lines that group content in lists and layouts. They help organize content and clarify relationships.
Composed Utilities
The following composed utilities provide ready-to-use dividers with built-in layout and coloring.
html
<!-- Standard Horizontal Divider -->
<hr class="divider" />
<!-- Vertical Divider -->
<div class="flex h-24">
<span>Left</span>
<hr class="divider-vertical" />
<span>Right</span>
</div>
<!-- Inset Divider -->
<hr class="divider-inset" />divider: The standard horizontal divider. Appliesdivider-base,divider-horizontal-layout, anddivider-surface.divider-vertical: A vertical divider. Appliesdivider-base,divider-vertical-layout, anddivider-surface.divider-inset: A horizontal divider that leaves a margin on the left side (typically used in lists with leading icons). Appliesdivider-base,divider-horizontal-layout,divider-inset-layout, anddivider-surface.
Composing Utilities
For custom divider behavior, you can apply the base layout and surface utilities individually.
html
<hr class="divider-base divider-horizontal-layout divider-primary-surface" />divider-base: Removes native margins and borders, leaving a cleanbox-borderelement ready to be styled via background colors.
Layout Utilities
divider-horizontal-layout: Sets width to 100% and height to 1px.divider-vertical-layout: Sets height to 100% and width to 1px.divider-inset-layout: Reduces width and adds a left margin (var(--spacing) * 4) to create an inset effect.
Surface Utilities
divider-surface: Applies the defaultoutline-variantbackground color.divider-primary-surface: Applies theprimarybackground color.