The Divider component is a thin, subtle line for separating content in your interface.

Basic Divider

By default, the Divider renders as a full-width horizontal line.


Variants

The Divider supports three variants: fullWidth (default), inset, and middle.

Full Width:

Inset:

Middle:

Vertical Divider

Use orientation="vertical" to render a vertical divider. The flexItem prop ensures proper height in flex containers.

LeftCenterRight

Divider with Text

You can render text or other elements within the divider using children. Use textAlign to control alignment.

List Divider

When using dividers in lists, set component="li" to ensure valid HTML structure.

  • Inbox
  • Drafts
  • Trash

Section Separators

Use dividers to separate distinct sections in a layout, combined with proper spacing.

Section 1

Section 2

Section 3

Icon Grouping

Use vertical dividers with the middle variant to group related actions in toolbars.

Bold
Italic
Left
Center
Right