ArcaneJaspr Codex
Documentation
ArcaneSeparator
Visual separator for dividing content sections
Live Demo
Horizontal Styles
Solid
Default
With Label
OR
Custom Color
With Label Vertical
Left
Right

ArcaneSeparator#

A visual separator component for dividing content sections. Supports horizontal and vertical orientations, as well as labeled separators.

Basic Usage#

ArcaneSeparator()

Properties#

PropertyTypeDefaultDescription
orientation SeparatorOrientation horizontal Direction of separator
thickness String '1px' Line thickness
color String? null Custom color (defaults to border color)
margin String? null Margin around separator

Orientations#

Horizontal (Default)#

ArcaneColumn(
  children: [
    ArcaneText('Section 1'),
    ArcaneSeparator(),
    ArcaneText('Section 2'),
  ],
)

Vertical#

ArcaneRow(
  children: [
    ArcaneText('Left'),
    ArcaneSeparator.vertical(height: '24px'),
    ArcaneText('Right'),
  ],
)

With Label#

Add a text label in the center of the separator:

ArcaneSeparator.withLabel(label: 'OR')
ArcaneSeparator.withLabel(
  label: 'Section Title',
  labelStyle: const ArcaneStyleData(
    fontWeight: FontWeight.bold,
    textColor: TextColor.accent,
  ),
)

Custom Styling#

ArcaneSeparator(
  thickness: '2px',
  color: ArcaneColors.accent,
  margin: '24px 0',
)

Use Cases#

  • Dividing form sections
  • Separating list items
  • Creating visual breaks in content
  • "Or" dividers in auth forms