Skip to the content

Divider

Divider is a standalone rule between stacked sections or side-by-side items. The line takes a rung of the edge ladder (tone) or any theme color; thickness and spacing are tokens.
Layout & Surfaces

When to use

Use when
  • You split groups inside a menu, panel or stacked list without wrapping the rows.
  • You separate inline items such as Buy | Sell — use orientation="vertical".
  • You need an "or", date or section separator — use label.
Avoid when
  • You separate rows of a DescriptionList — use its dividers.
  • You want a framed box — use a Paper with a border.
  • The break starts a new section — use a heading.

Usage

tone defaults to hairline, thickness to thin and spacing (the margin around the rule) to micro. color wins over tone; use it only when the rule must carry emphasis.






<Divider />
<Divider tone="strong" />
<Divider color="primary" />
<Divider thickness="regular" spacing="medium" />

Vertical

A vertical divider stretches to the height of its Flex row.

BuySell
<Flex flexDirection="row" gap="small" alignItems="center">
  <Text text="Buy" />
  <Divider orientation="vertical" />
  <Text text="Sell" />
</Flex>

Labeled

label centers text (or a node) on a horizontal rule. It is ignored on a vertical divider.

<Divider label="or" />

Accessibility

  • A horizontal divider is a native <hr>, so it has the implicit separator role.
  • A vertical divider renders role="separator" with aria-orientation="vertical".
  • A labeled divider renders role="separator"; a string label becomes its accessible name. With a node label, pass aria-label yourself.

Properties

See also