React Shared Components

Interactive testing environment for react-shared components

Theme Playground

Current: Default

ContentDivider

A wrapper around the Divider component with configurable spacing options for content sections.

Interactive Playground

Customize the ContentDivider properties and see the changes in real-time.

Content above divider

Content below divider

Spacing Options

Different spacing configurations for content sections.

Small Spacing

Content section 1

Content section 2

Medium Spacing (Default)

Content section 1

Content section 2

Large Spacing

Content section 1

Content section 2

Layout Variations

Different visual styles inherited from the Divider component.

default

Content above

Content below

hidden

Content above

Content below

invisible

Content above

Content below

API Reference

Complete list of props and their descriptions.

PropTypeDefaultDescription
layout'default' | 'hidden' | 'subtle' | 'strong' | 'dotted' | 'multiple-icons''subtle'Visual style of the divider line (inherited from Divider)
spacings'small' | 'medium' | 'large''medium'Vertical spacing around the divider (small: my-5/8, medium: my-10, large: my-10/20)
variant'default' | 'line-icon-combo' | 'line-slot-combo'undefinedDivider variant for icon/slot combinations (inherited from Divider)
classNamestringundefinedAdditional CSS classes

Usage Notes

Purpose

ContentDivider is a convenience wrapper around the Divider component that adds configurable vertical spacing. It's designed for separating content sections with consistent spacing patterns.

Theme Integration

The component respects theme configuration for spacings and variant through the useTheme hook. Theme settings can override the default props.

Responsive Behavior

Spacing values are responsive: small (my-5 → md:my-8), medium (my-10 → md:my-10), large (my-10 → md:my-20).