Skip to content
Mosaic
On this page

Separator

A horizontal rule between blocks of content, as role="separator". Without children it is a 1px line; with children it is a labelled divider with a line on each side. Carries data-labelled when labelled.

Use for

  • a divider between sections or groups
  • a labelled divider, such as 'or' between sign-in options

API reference

Separator

Renders a div, or the render element, and forwards its ref.

Slot: cl-separator

Examples

A line

TSX
<Separator />

A labelled divider

TSX
<Separator>or</Separator>