---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Separator

A hairline between two groups of content, across or upright, such as between menu sections or toolbar groups, for React and Tailwind CSS. Free, MIT.

Free. Its export: `Separator`.

## Try it

Lay the line across between two lines or upright between toolbar items, and turn it from decoration into a split a screen reader announces.

The toolbar’s buttons do nothing: they only show where an upright line stands.

## When to use

- A hairline between two groups of content, across or upright, such as between menu sections or toolbar groups.
- Also called: divider.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Separator on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

```sh
npx shadcn@4.23.1 add @goop/trail-separator
```

```text
Add the Goop Separator to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { Separator } from '@/components/ui/goop/separator';
import { Button } from '@/components/ui/goop/button';

<div className="flex flex-col gap-3">
  <p>Signed in as the workspace owner</p>
  <Separator decorative={false} />
  <div role="toolbar" aria-label="Formatting" className="flex items-center gap-1">
    <Button variant="ghost" size="sm">Bold</Button>
    <Separator orientation="vertical" />
    <Button variant="ghost" size="sm">Link</Button>
  </div>
</div>
```

- Fits: settings, record: body.
- width, border: add no class for these.

## API reference

### Options

- `decorative?: boolean = true` — Whether the line is decoration only or a split a screen reader announces.
- `orientation?: 'horizontal' | 'vertical' = 'horizontal'` — Across its caller's width or upright, as tall as its row.

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

## Related

- [Button](/themes/trail/components/button): A button with words that runs an action, in several looks and sizes.
- [Alert](/themes/trail/components/alert): A message about the state of something that stays inline in the page until it changes.
- [Banner](/themes/trail/components/banner): A full-width band across the top of the app or a page for one message that stays until it is no longer true, such as a trial ending.
- [Progress](/themes/trail/components/progress): A bar for work under way, its amount known or not.
