npx shadcn@4.23.1 add @goop/meadow-separatorSeparator
FreeA 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.
What an agent sees
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>
);
}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.
npx shadcn@4.23.1 add @goop/meadow-separatorAdd the Goop Separator to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
| Option | Type | What it does |
|---|---|---|
| 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. |
- 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.