Separator
Divide content regions with an oriented semantic line.
Anatomy#
Usage#
Use Separator to divide related regions with a visible line. Choose its orientation to match the
layout boundary. For a divider inside ButtonGroup, use
ButtonGroup.Separator so orientation follows the group.
Semantic orientation#
Every Separator sets role="separator", aria-orientation, and data-orientation. The default
orientation is horizontal, a full-width line. Use vertical between items in a row; it draws a
full-height line, so give the row a height.
Root styling#
Separator has one <div> root. Use class and style for a local override, or configure
separator.base.root in your Theme for application defaults. root is the only slot, so classes
and styles only duplicate class and style.
Examples#
Divide a product heading from related links#
Use a horizontal rule under a title, then vertical rules between inline destinations.
API Reference#
Attributes#
data-orientationProps#
Props for the Separator component. Renders a <div> element by default.