Separator
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 separatorUsage
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.
Orientations
orientation switches between a full-width rule and a full-height divider; the vertical form needs a sized flex parent
Variants
default, dashed, dotted and gradient — dashed and dotted swap the background for a border so the dash pattern renders
Thickness
size sets the rule thickness (sm / md / lg). It is applied through compound variants, so it works with every variant and both orientations
With Text
A labelled divider: the separator is split around centred text to break long forms into sections
Navigation Example
Vertical separators between inline links, the most common real use outside of forms