---
title: Separator
description: Separators are non-interactive visual dividers between related groups of content, controls, or menu actions.
category: Layout
---
import { meta as SeparatorMeta, Default } from '@/content/stories/separator';
import Canvas from '@/components/component-docs/canvas';
import Demo from '@/components/component-docs/demo';
export const config = {
dependencies: {
components: [Canvas, Demo],
scripts: [
'../../components/component-docs/demo.script.tsx',
'../../components/component-docs/canvas.script.tsx',
'../../components/component-docs/controls.script.tsx',
],
},
};
# Separator
Separators are non-interactive visual dividers between related groups of content, controls, or menu actions.
## Try it
## Usage
Use the default horizontal separator to divide stacked content. Use a vertical separator between control groups in a horizontal toolbar.
```tsx
import { RuiSeparator } from '@ecopages/radiant-ui/separator';
import { RuiButton } from '@ecopages/radiant-ui/button';
import { RuiToolbar } from '@ecopages/radiant-ui/toolbar';
B
I
U
S
```
## API
`RuiSeparator` renders an `
`; it is a JSX helper, not a custom element.
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `orientation` | `horizontal` ยท `vertical` | `horizontal` | Visual direction and `aria-orientation` value. |
### CSS classes
| Class | Description |
| --- | --- |
| `.rui-separator` | Generic horizontal or vertical separator. |
## Accessibility
- Separators have `role="separator"` and an `aria-orientation` matching their visual direction.
- They are not focusable or interactive. Do not use them to convey essential information.
Follows the WAI-ARIA guidance for separators in composite menus.