# Separator: Vertical label

> A vertical separator with a label keeps the text upright and draws the line above and below it.

Example: https://hextaui.com/docs/separator/examples/vertical-label
Component docs: https://hextaui.com/docs/separator.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/separator-vertical-label.json
```

This adds `components/examples/separator/vertical-label.tsx` with the Separator component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/separator/vertical-label.tsx"
import { Button } from "@/components/ui/button"
import { Separator } from "@/components/ui/separator"

export function SeparatorVerticalLabel() {
  return (
    <div className="flex items-stretch gap-4">
      <div className="flex w-32 flex-col gap-2">
        <Button variant="outline">Upload file</Button>
        <Button variant="outline">Browse library</Button>
      </div>
      <Separator orientation="vertical">or</Separator>
      <div className="flex w-32 items-center justify-center rounded-lg border border-dashed p-4 text-center text-sm text-muted-foreground">
        Drop a file here
      </div>
    </div>
  )
}
```

## Props in this example

### Separator

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

## More Separator examples

- [Vertical](https://hextaui.com/docs/separator/examples/vertical.md)
- [Label](https://hextaui.com/docs/separator/examples/label.md)
- [Align](https://hextaui.com/docs/separator/examples/align.md)
- [Decorative](https://hextaui.com/docs/separator/examples/decorative.md)
- [Inline](https://hextaui.com/docs/separator/examples/render.md)
- [Long content](https://hextaui.com/docs/separator/examples/long-content.md)
- [Right to left](https://hextaui.com/docs/separator/examples/rtl.md)
