content-divider Component

Content Divider System

Content dividers create visual separation between different sections of content while maintaining clarity and organization. They guide users' attention, improve readability, and establish a clear structure within an interface.

Line Dividers

Preview Code
Copy

Default

Thick

Heavy

Line Styles

Preview Code
Copy

Solid

Dashed

Dotted

Double

Text Dividers

Preview Code
Copy
Section Break
New Section
End of Section

Colored Text Dividers

Preview Code
Copy
Primary
Success
Warning
Error
Information

Icon Dividers

Preview Code
Copy

Special Effects

Preview Code
Copy

Fade Effect

Fade Thick

Gradient

Gradient Thick

Section with Ornament

Vertical Dividers

Preview Code
Copy
Home
Products
About
Contact

Spacing Modifiers

Preview Code
Copy

Content above compact divider

Content above default divider

Content above relaxed divider

Content above loose divider

Content below

Color Variations

Preview Code
Copy

Combined Modifiers

Preview Code
Copy
Important Section

Practical Examples

Preview Code
Copy

Article Title

This is the first paragraph of content that explains something important about the topic at hand.

Continue Reading

This is the next section of content that provides additional details and context.

Contact Details

Card Header

Card content goes here with appropriate spacing.

Divider Class API Reference

Type Class Options Usage Notes
Base divider Required base class Creates horizontal line by default
Line Style solid Solid line Default style
dashed Dashed line Modifier to divider
dotted Dotted line Modifier to divider
double Double line Modifier to divider
Thickness thin 1px thickness Thinnest option
(default) 1px thickness No class needed
thick 2px thickness Medium thickness
heavy 4px thickness Thickest option
Content text Text in middle Requires <span> child
icon Icon in middle Requires <i> child
section Section divider Special section break
Alignment (center) Center aligned Default for text/icon
left Left aligned For text/icon dividers
right Right aligned For text/icon dividers
Spacing compact Minimal spacing my-2
(default) Normal spacing my-6
relaxed Extra spacing my-8
loose Maximum spacing my-12
Effects fade Fade gradient Fades to transparent
gradient Color gradient Blue to purple to pink
animated Shimmer animation Animated effect
ornament Diamond ornament Use with section
Orientation vertical Vertical divider For inline separation
Colors (default) Gray color No class needed
primary Primary blue Main action color
positive Green color Success state
negative Red color Error state
warning Yellow/orange Warning state
+ 14 colors Extended palette red, blue, green, purple, etc.

Code Examples

<!-- Basic Line Divider -->
<div class="divider"></div>

<!-- Text Divider -->
<div class="divider text">
    <span>Section Title</span>
</div>

<!-- Icon Divider -->
<div class="divider icon">
    <i class="icon star"></i>
</div>

<!-- Styled Dividers -->
<div class="divider primary thick"></div>
<div class="divider dashed warning"></div>
<div class="divider gradient heavy"></div>

<!-- Vertical Divider (inline) -->
<span>Item 1</span>
<div class="divider vertical"></div>
<span>Item 2</span>

<!-- Text with Alignment -->
<div class="divider text left primary">
    <span>Chapter 1</span>
</div>

<!-- Section Divider with Ornament -->
<div class="divider section ornament"></div>

Usage Guidelines

Best Practices

  • Use dividers to create clear visual separation between sections
  • Choose appropriate thickness and style based on content hierarchy
  • Use text or icon dividers to provide context for the separation
  • Maintain consistent spacing with compact, default, relaxed, or loose modifiers
  • Use vertical dividers for inline navigation or menu items

Common Pitfalls

  • Avoid overusing dividers - too many can clutter the interface
  • Don't use heavy dividers for minor content breaks
  • Avoid mixing too many divider styles on the same page
  • Don't use colored dividers without semantic meaning