Skip to Content
DocumentationSeparator

Separator

Visually or semantically separates content.

Examples

Horizontal

Above the separator
Below the separator

Vertical

Left content
Right content
More content

Cards and Lists

Order Summary

#12345
Subtotal$99.00
Shipping$9.99
Tax$10.90
Total$119.89

API

PropertyTypeDefaultDescription
orientation”horizontal” | “vertical""horizontal”The orientation of the separator.
decorativebooleantrueWhether or not the component is purely decorative. When true, accessibility-tree will ignore the element.
classNamestring-CSS class name for custom styling.
…propsReact.ComponentProps<typeof SeparatorPrimitive.Root>-All Radix Separator root properties are supported.

Usage Guidelines

  • Use horizontal separators to divide content sections vertically
  • Use vertical separators in navigation menus, breadcrumbs, or inline content
  • Set decorative={false} when the separator conveys important structural meaning
  • Adjust styling with className for different visual weights and colors
  • Consider the visual hierarchy - not every division needs a separator
Last updated on