# Separator
A visual divider component for separating content. Supports horizontal and
vertical orientations with accessibility support.
## Installation
```bash
deno run -A jsr:@lockness/ui add separator
```
## Usage
```tsx
import { Separator } from '@lockness/ui/components'
// Horizontal separator (default)
// With spacing
// Vertical separator
Item 1
Item 2
// Semantic separator (not decorative)
```
## Props
| Prop | Type | Default | Description |
| ------------- | ---------------------------- | -------------- | ------------------------------------------------------- |
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Separator orientation |
| `decorative` | `boolean` | `true` | Whether the separator is decorative (for accessibility) |
| `class` | `string` | - | Additional CSS class names |
| `id` | `string` | - | Element id attribute |
## Orientation
### Horizontal
```tsx
Content above
Content below
```
### Vertical
```tsx
Blog
Docs
Source
```
## CSS Variables
| Variable | Description |
| ----------------------- | ------------------------------- |
| `--separator-color` | Color of the separator line |
| `--separator-thickness` | Thickness of the separator line |
## Accessibility
- When `decorative={true}` (default): Uses `role="none"` to indicate it's purely
visual
- When `decorative={false}`: Uses `role="separator"` with `aria-orientation` for
semantic separation
## Features
- **Accessible** - Proper ARIA roles for screen readers
- **Orientations** - Horizontal and vertical layouts
- **Themeable** - Uses CSS variables for styling
- **Flexible** - Works in flexbox and grid layouts