Separator
Visually or semantically separates content.
When to use
A Separator divides adjacent content without a box, in a row or in a column.
- Prefer
Cardwhen the content needs a border on every side. - Prefer
Wellwhen the content needs a recessed background, not a line. - Prefer
DescriptionListwhen the content is key and value pairs, which carry their own rows.
mantle
An open-source UI component library.
ngrok mantle
ngrok mantle
ngrok mantle
Polymorphism
When you want to render something else as a HorizontalSeparatorGroup or Separator, you can use the asChild prop to compose.
Color
The separator renders in the semantic separator color token: gray-500/20 in light and gray-600/20 in dark.
This is the canonical divider color across mantle: Accordion dividers,
DropdownMenu.Separator, Command.Separator, Select.Separator, and the rest all resolve to it.
Reuse the same color on your own dividers instead of hard-coding it:
- Blog
- Docs
- Source
API Reference
Separator
Visually or semantically separates content.
All props from div, plus:
HorizontalSeparatorGroup
A container to layout a group of horizontal separators and other children.
Overrides all children Separators to be orientation="horizontal".
All props from div, plus: