Skip to content

Divider

A thin line that separates content, horizontal or vertical, with optional insets or a label.

import { Divider, LabeledDivider } from '@windmorph/react';

Purpose

A divider is a thin line that separates content into groups — between sections of a page, or between items in a list. Use it sparingly; whitespace or a change of surface often separates content more clearly than a line.

orientation is horizontal (full width) or vertical (full height of a flex row), and inset leaves 16px at the start or at both ends. LabeledDivider adds supporting text 4px below a full-width line, the text 8px clear of the end and 8px clear below, such as the name of the section that follows.

When not to use

When whitespace already groups content, a divider adds visual noise.

See also

  • Divider on m3.material.io: Material's own guidelines, with anatomy and specs.
  • List: Rows with headline, overline, supporting text and leading or trailing content (icons, avatars, images, video thumbnails); items can be links, switches, checkboxes or radio buttons, and put in order by drag or a menu.
  • Card: A container for related content in three forms: static, pressable or a link.