Separator

Base UI

A quiet divider that gives related content room to breathe.

Details

A related section

ReadyResponsive

Usage

Package export
tsx
import { Separator } from "@jnpll/elements-ui/separator";

<div className="w-full max-w-sm">
  <p>{"Details"}</p>
  <Separator className="my-4" />
  <p className="text-sm text-muted-foreground">A related section</p>
</div>

Examples

Vertical orientation
DetailsSettings

API Reference

PropType / descriptionDefault
orientation"horizontal" | "vertical"

Direction of the divider.

"horizontal"
classNamestring

Controls color, spacing, and dimensions.

-

Composition & accessibility

A vertical separator needs a parent with a defined height. Use the orientation prop to establish the divider's direction.