Separator
Visually or semantically separates content.
Examples
Horizontal
Preview
Above the separator
Below the separator
Vertical
Preview
Left content
Right content
More content
Cards and Lists
Preview
Order Summary
#12345Subtotal$99.00
Shipping$9.99
Tax$10.90
Total$119.89
API
| Property | Type | Default | Description |
|---|---|---|---|
| orientation | ”horizontal” | “vertical" | "horizontal” | The orientation of the separator. |
| decorative | boolean | true | Whether or not the component is purely decorative. When true, accessibility-tree will ignore the element. |
| className | string | - | CSS class name for custom styling. |
| …props | React.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