# Separator

Visually divide sections of content or groups of items.

```tsx
import { Separator } from '@fluxui-dev/react';

<Separator />
```

## With text

Add text to the separator for a more descriptive element.

```tsx
<Separator text="or" />
```

## Vertical

Separate contents with a vertical separator when horizontally stacked.

```tsx
<Separator vertical />
```

## Limited height

You can limit the height of the vertical separator by adding vertical margin.

```tsx
<Separator vertical className="my-2" />
```

## Subtle

Flux offers a subtle variant for a separator that blends into the background.

```tsx
<Separator vertical variant="subtle" />
```

## Reference

### Separator

**Prop:**

- `vertical` - Displays a vertical separator. Default is horizontal.
- `variant` - Visual style variant. Options: `default`, `subtle`. Default: `default`.
- `text` - Optional text, or any other content, to display in the center of a horizontal separator.
- `orientation` - Alternative to `vertical` prop. Options: `horizontal`, `vertical`. Default: `horizontal`.

**CSS:**

- `className` - Additional CSS classes applied to the separator. Commonly `my-*` to shorten vertical separators.

**Attribute:**

- `data-flux-separator` - Applied to the root element for styling and identification.
- `data-orientation` - The separator's orientation: `horizontal` or `vertical`.
