npx shadcn@4.23.1 add @goop/trail-separatorSeparator
FreeA hairline between two groups of content, across or upright, such as between menu sections or toolbar groups, for React and Tailwind CSS. Free, MIT.
What an agent sees
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>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.
npx shadcn@4.23.1 add @goop/trail-separatorAdd the Goop Separator to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
| Option | Type | What it does |
|---|---|---|
| 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. |
- data-slot values (to select a part by): separator
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.