Section Separator - Stylish Ribbon Dividers

Oct 22, 2025
tutorial astromdxreactuidesign
4   Minutes
618   Words

Section Separator - Ribbon Dividers

Elegant CSS ribbon-style separators inspired by classic design patterns. Perfect for subsections and content organization.

📦 Import the Components

import SectionSeparator from "@/react/SectionSeparator/SectionSeparator.jsx";

or with relative path:

import SectionSeparator from "../../react/SectionSeparator/SectionSeparator.jsx";

Important: Use .mdx extension (not .md) when working with React components.

🚀 Quick Start

<SectionSeparator />

The separator automatically adapts to your theme and creates a stylish ribbon effect.

🎨 Ribbon Styles

Ribbon (Default)

Classic ribbon with arrow point:

<SectionSeparator style="ribbon" />

Folded

Ribbon with 3D folded corner:

<SectionSeparator style="folded" />

Notched

Sharp notched ends:

<SectionSeparator style="notched" />

Bookmark

Bookmark-style pointer:

<SectionSeparator style="bookmark" />

Tag

Price tag with hole:

<SectionSeparator style="tag" />

Stitched

Stitched edge effect:

<SectionSeparator style="stitched" />

Zigzag

Zigzag edge pattern:

<SectionSeparator style="zigzag" />

📍 Position

Control ribbon alignment:

Left (Default)

<SectionSeparator position="left" />

Natural reading flow, arrow points right.

Center

<SectionSeparator position="center" />

Centered ribbon, arrows on both ends (for ribbon/stitched styles).

<SectionSeparator position="right" />

Right-aligned, arrow points left.

💫🌟

📏 Width

Control ribbon length:

Normal(25%) - default

<SectionSeparator />

Compact accent for subtle breaks.

20% length

<SectionSeparator length={20} color="blue" />

Balanced size for short title type cases.

70% length

<SectionSeparator length={70} color="purple" />

Prominent divider for major subsections.

🌸🌼🌺🌻🌷

📏 height

// 20px
<SectionSeparator height="thin" />
// 32px (default)
<SectionSeparator height="normal" />
// 48px
<SectionSeparator height="thick" />
<SectionSeparator
title="Step 1: Setup"
style="folded"
color="emerald"
length={35}
/>
Step 1: Setup
<SectionSeparator
title="Configuration"
style="ribbon"
color="blue"
height="thick"
length={30}
/>
Configuration

📍 Markdown heading as title

Make sure to use client:load when passing markdown heading as title

<SectionSeparator style="ribbon" length={40} client:load>
## Anand wrote
</SectionSeparator>

Anand wrote

<SectionSeparator title="My Title" style="folded" />
My Title
<SectionSeparator title="Ignored" style="stitched" client:load>
### My title
</SectionSeparator>

My title

Ignored

🎨 Colors

Auto (Default)

Theme-aware emerald color:

<SectionSeparator color="auto" />

Preset Colors

12 beautiful color options:

Emeraldcolor="emerald"

Bluecolor="blue"

Purplecolor="purple"

Pinkcolor="pink"

Orangecolor="orange"

Redcolor="red"

Yellowcolor="yellow"

Greencolor="green"

Indigocolor="indigo"

Tealcolor="teal"

Cyancolor="cyan"

Rosecolor="rose"

Custom Hex Colors

<SectionSeparator color="#8b5cf6" />
<SectionSeparator color="#f59e0b" />
💚💛💙💜

📐 Spacing

Tight (16px)

<SectionSeparator spacing="tight" />

Minimal vertical space.

Normal (24px) - Default

<SectionSeparator spacing="normal" />

Standard spacing for most content.

Loose (40px)

<SectionSeparator spacing="loose" />

Extra breathing room.

⚙️ Props Reference

PropTypeDefaultOptions
stylestring”ribbon”ribbon, folded, notched, bookmark, tag, stitched, zigzag
positionstring”left”left, center, right
widthstring”medium”short, medium, long, full
colorstring”auto”auto, emerald, blue, purple, pink, orange, red, yellow, green, indigo, teal, cyan, rose, or hex
spacingstring”normal”tight, normal, loose

💡 Usage Examples

Subsection Breaks

Organize content with visual hierarchy:

<SectionSeparator title="Introduction" />
Introduction
<SectionSeparator title="Getting Started" color="blue" />
Getting Started
<SectionSeparator title="Advanced Topics" length={40} height="thick" color="purple" />
Advanced Topics

Position Variations

Mix positions for creative layouts:

<SectionSeparator position="left" color="blue" style="ribbon" />

Left-aligned content with arrow pointing right.

<SectionSeparator position="center" color="purple" style="folded" />

Centered content for balanced design.

<SectionSeparator position="right" color="pink" style="bookmark" />

Right-aligned content with arrow pointing left.

🎯 Style Showcase

All Styles in Action

blue ribbon
purple folded
pink notched
orange bookmark
teal tag
red stitched
green zigzag

Width Comparison

35%
50%
83%
15%

Position Comparison

<SectionSeparator position="left" color="emerald" length="60" title="left aligned 60% emerald" />
left aligned 60% emerald
center aligned 73% blue
right aligned 76% purple
💚💛💙💜

📝 Best Practices

1. Consistent Styling

Choose 1-2 ribbon styles for your entire blog:

// ✅ Good - Consistent
<SectionSeparator style="ribbon" />
<SectionSeparator style="ribbon" color="blue" />
<SectionSeparator style="ribbon" color="purple" />
// ❌ Inconsistent
<SectionSeparator style="ribbon" />
<SectionSeparator style="tag" />
<SectionSeparator style="zigzag" />

2. Color Meaning

Assign semantic meaning to colors:

  • Blue → Information, tips
  • Yellow → Warnings, cautions
  • Red → Errors, important alerts
  • Green → Success, go-ahead
  • Purple → Premium, advanced topics
  • Orange → Updates, changes

3. Position Guidelines

  • Left → Best for blog posts (natural reading)
  • Center → Good for formal documentation
  • Right → Creative layouts, unique designs

5. Height Selection

  • thin → Suitable for lengthy ribbon without title or for section completion
  • normal → Standard/default width
  • thick → Important subsections
🌸🌼🌺🌻🌷

Features

  • 7 ribbon styles - Inspired by CSS ribbon patterns
  • 3 positions - Left, center, right alignment
  • 2 height options - thin, normal & thick
  • 12 preset colors + custom hex colors
  • Auto theme detection - Adapts to light/dark mode
  • Pure CSS - No images, all CSS shapes
  • Lightweight - Minimal performance impact
  • Responsive - Works on all screen sizes

🎨 Style Guide

Ribbon Styles Overview

StyleBest ForComplexity
ribbonGeneral use, versatileSimple
foldedPremium content, depthMedium
notchedModern, clean designSimple
bookmarkNavigation, markersSimple
tagLabels, categoriesMedium
stitchedHandcrafted, personalMedium
zigzagPlayful, creativeComplex

When to Use Each Style

Ribbon - Classic and versatile

<SectionSeparator style="ribbon" />

Use for: General subsections, neutral content

Folded - Premium feel

<SectionSeparator style="folded" />

Use for: Important sections, premium content

Notched - Modern and sharp

<SectionSeparator style="notched" />

Use for: Tech blogs, minimalist design

Bookmark - Directional

<SectionSeparator style="bookmark" />

Use for: Navigation hints, progress indicators

Tag - Labeled content

<SectionSeparator style="tag" />

Use for: Categories, labels, prices

Stitched - Handcrafted

<SectionSeparator style="stitched" />

Use for: Personal blogs, creative content

Zigzag - Playful

<SectionSeparator style="zigzag" />

Use for: Fun content, children’s themes

Happy blogging!

💫🌟
Article title Section Separator - Stylish Ribbon Dividers
Article author Anand Raja
Release time Oct 22, 2025
Copyright 2025
RSS Feed
Sitemap