---
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 thin line between two groups of content, across or upright, such as between toolbar items or two columns, 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 thin line between two groups of content, across or upright, such as between toolbar items or two columns.
- 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/meadow-separator
```

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

## Usage

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

function FieldworkSettings() {
  return (
    <div className="flex flex-col gap-4">
      <section className="text-base">Notes are kept for the Fieldwork crew.</section>
      <Separator decorative={false} />
      <section className="flex h-7 items-center gap-3">
        <Button variant="ghost">Export notes</Button>
        <Separator orientation="vertical" />
        <Button variant="ghost">Archive the season</Button>
      </section>
    </div>
  );
}
```

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

## API reference

### Options

- `decorative?: boolean = true` — Whether the line is decoration only (the default) or a split a screen reader announces.
- `orientation?: 'horizontal' | 'vertical' = 'horizontal'` — Across its caller's width (the default) 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/meadow/components/button): A button with words that runs an action, in several looks and sizes, on a page, in a row or in a sidebar.
- [Alert](/themes/meadow/components/alert): A message about the state of something that stays inline in the page until it changes.
- [Banner](/themes/meadow/components/banner): A full-width accent pill that announces one thing, such as an app to install or a feature to switch on, with one action at its end.
- [Progress](/themes/meadow/components/progress): A bar that fills as work goes on, for an upload or a setup with a known end, or that sweeps while the end is unknown.
