Skip to Content

Separator

A visual divider built on Radix UI Separator. Supports horizontal and vertical orientations.


Import

import { Separator } from "@phpcreation/frontend-components-react-nextjs-bundle/components/Separator";

Props

PropTypeRequiredDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the separator
decorativebooleanfalseWhen true, hidden from accessibility tree

Usage

import { Separator } from "@phpcreation/frontend-components-react-nextjs-bundle/components/Separator"; // Between sections <div> <h2>Details</h2> <Separator className="my-4" /> <p>Content below...</p> </div> // Vertical (inside a flex row) <div className="flex items-center gap-2"> <span>Name</span> <Separator orientation="vertical" className="h-4" /> <span>Status</span> </div>
Last updated on