Separator
separatorA hairline between two things. Horizontal by default and vertical when rotated, with the vertical one stretching to fill the row it sits in so it works between buttons without a height being passed.
import { Separator } from "@/components/forme/separator/separator";
export function SeparatorDemo() {
return (
<div className="w-full max-w-xs">
<p className="text-body-regular">Above the line</p>
<Separator className="my-3" />
<p className="text-body-regular text-muted-foreground">Below it</p>
</div>
);
}Above the line
Below it
Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Parts
SeparatorTakesComponentProps<typeof SeparatorPrimitive>
Related
Forme foundation
Design tokens, motion presets and the shared class-name helper every Forme component builds on.
layout

Accordion
Collapsible sections on the Base UI primitive, with headings a screen reader can list, arrow-key navigation between triggers and a height that animates to the measured content.
layout

Card
A bordered surface with a header, title, description, content and footer you compose yourself, so a card is never more structure than the content inside it needs. Everything reads from the foundation tokens, which makes it retheme with the rest of the library.
layout