The <luna-divider> component provides elegant horizontal and vertical dividers with labels, variants, and custom styling.
Paths
/lunadom/components/divider/divider.js Basic Dividers
Content above
Content below
Variants
Subtle (near-invisible)
Default (standard separator)
Strong (more visible)
Gradient (elegant fade)
Line Styles
Solid
Dashed
Dotted
With Labels
Section A content
Section B content
Alternative content
Label Positions
Start
Center (default)
End
Spacing
Default spacing
Content
With 2rem spacing
Content
Vertical Dividers
Left
Center
Right
Custom Styling
Customization
default - Optional label text displayed at midpointvertical - Renders a vertical dividervariant - Visual weight (subtle, default, strong, gradient)style-line - Line style (solid, dashed, dotted)label-position - Label placement (start, center, end)spacing - Vertical margin (CSS length)--luna-divider-color - Line color--luna-divider-thickness - Line thickness--luna-divider-radius - Border radius of line--luna-divider-gap - Gap between label and line--luna-divider-spacing - Block margin override--luna-divider-label-color - Label text color--luna-divider-label-size - Label font size--luna-divider-gradient - Custom gradient for gradient variant
luna-divider-show - Emitted when the divider is shownluna-divider-hide - Emitted when the divider is hidden