Separator

Horizontal or vertical rules between sections.

Also known as: divider, horizontal rule, vertical divider

Installation

Install with the CLI, or copy the component source into your project.

Add separator (npm)

npx --yes -p @default-file/ui df-ui add separator

Horizontal

Default orientation.

Above

Below

Vertical

Inline divider between items.

Left
Right

Properties

Horizontal or vertical rule between sections.

Separator

PropTypeDefaultNotes
orientation"horizontal" | "vertical""horizontal"Direction of the rule.
decorativebooleantrueWhen true, treated as presentational for assistive tech.
classNamestring-Additional styles.

Tokens

Theme defaults live on :root. Override these globally or on a local host.

TokenTypeDefaultNotes
--borderCSS colorvar(--df-neutral-100)Rule color.