Skip to content

Divider

A divider is a thin line that groups content in lists and layouts.

Dividers separate content into clear groups.

List dividers

The divider renders as an <hr> by default. You can save rendering this DOM element by using the divider prop on the ListItem component.

HTML5 specification

In a list, you should ensure the Divider is rendered as an <li> to match the HTML5 specification. The examples below show two ways of achieving this.

Inset dividers

Subheader dividers

Middle divider

Dividers with text

You can also render a divider with content.

Vertical divider

You can also render a divider vertically using the orientation prop.

Note the use of the flexItem prop to accommodate for the flex container.

Vertical with variant middle

You can also render a vertical divider with variant="middle".

Vertical with text

You can also render a vertical divider with content.