Layout

Separator

A thin horizontal or vertical line between sections of content or related items.

Class nameTypeDescription
dividerplf:dividerComponentA line between content, horizontal by default
divider-horizontalplf:divider-horizontalDirectionA vertical line between items in a row

Default

The line has no margin, so space it with the layout around it.

Section one


Section two

A vertical line with meaning needs role="separator" and aria-orientation="vertical" on a <div>, since an <hr> is always announced as horizontal.

React

Separator from @pelatform/react renders this line, and orientation picks its form.

Prop Values Default
orientation horizontal, an hr; vertical, a span with divider-horizontal between items in a row horizontal

The other props are the element’s own, className and ref included.

CSS variables

Override on a root or on a single line; length is the long side and thickness the short side.

Variable Default
--plf-separator-color Subtle border
--plf-separator-thickness Border width, 1px
--plf-separator-length 100% horizontal; vertical lines stretch in a flex row

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons