# Separator

> A thin horizontal or vertical divider line.

- Category: [Window & layout](https://tarve.dev/docs.md#layout)
- Import: `import { Separator } from "@tarve/core";`
- Props type: `SeparatorProps`
- Source: [packages/core/src/controls.ts:164](https://github.com/omarcosr/tarve/blob/main/packages/core/src/controls.ts#L164)

## Usage

```tsx title="Separator.tsx"
import { Column, Row, Separator, Text } from "@tarve/core";

<Column gap={12}>
  <Text>Account</Text>
  <Separator />
  <Row gap={12} style={{ height: 20 }}>
    <Text>Profile</Text>
    <Separator orientation="vertical" />
    <Text>Billing</Text>
  </Row>
</Column>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Direction](https://tarve.dev/docs/components/Direction.md) · Next: [AnimatePresence](https://tarve.dev/docs/components/AnimatePresence.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Separator · Index for agents: https://tarve.dev/llms.txt
