Tuimorphic

Divider

Visual separator for content sections with horizontal or vertical orientation.

Import

import { Divider } from 'tuimorphic';

Usage

The Divider component separates content sections with a simple line in either horizontal or vertical orientation.

Content above the divider.

Content below the divider.

<Divider />

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Orientation of the divider
classNamestring-Additional CSS class names

Variants

Horizontal

Content above the divider.

Content below the divider.

<p>Content above</p>
<Divider />
<p>Content below</p>

Vertical

Left contentRight content
<div style={{ display: 'flex', alignItems: 'center', height: '50px' }}>
  <span>Left</span>
  <Divider orientation="vertical" />
  <span>Right</span>
</div>

In Card Layout

<Card title="Settings">
  <p>General settings</p>
  <Divider />
  <p>Advanced settings</p>
</Card>

On this page