Separator

Free

Enhanced separator component with multiple variants, orientations, and smooth transitions. Perfect for dividing content and creating visual hierarchies.

Installation

Install via CLI

npx @moontra/moonui-cli add separator

Usage

Content above

Content below

Examples

Basic Usage

A horizontal rule that inherits --border, so it follows the active theme instead of a hardcoded grey

Radix Primitives

An open-source UI component library.

Blog
Docs
Source

Orientations

orientation switches between a full-width rule and a full-height divider; the vertical form needs a sized flex parent

Content above horizontal separator
Content below horizontal separator
Left content
Right content

Variants

default, dashed, dotted and gradient — dashed and dotted swap the background for a border so the dash pattern renders

Default
Dashed
Dotted
Gradient

Thickness

size sets the rule thickness (sm / md / lg). It is applied through compound variants, so it works with every variant and both orientations

sm
md (default)
lg
dashed + lg

With Text

A labelled divider: the separator is split around centred text to break long forms into sections

Or continue with

Navigation Example

Vertical separators between inline links, the most common real use outside of forms