Skip to content

Divider

Divider creates visual separation between content sections. It supports different weights, orientations, and can include a centered label.

Content above
Content below

Standard weight divider for most use cases.

Section 1
Section 2
<Divider />

Lighter divider for softer separation.

Section 1
Section 2
<Divider variant="subtle" />

Heavier divider for clear section breaks.

Section 1
Section 2
<Divider variant="strong" />

Add a centered label to provide context for the separation.

Past Readings
or
New Reading
<Divider label="or" />
continue with
<Divider label="continue with" />

Control the vertical margin around the divider.

No spacing
Small spacing
Medium spacing (default)
Large spacing
End
SpacingValueUsage
none0Tight layouts
sm8pxCompact lists
md16pxDefault
lg24pxMajor sections

Use vertical dividers to separate inline content.

Heaven
Earth
Thunder
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<Text>Heaven</Text>
<Divider orientation="vertical" spacing="md" />
<Text>Earth</Text>
<Divider orientation="vertical" spacing="md" />
<Text>Thunder</Text>
</View>

PropTypeDefaultDescription
variant'default' | 'subtle' | 'strong''default'Visual weight
orientation'horizontal' | 'vertical''horizontal'Direction
labelstring-Centered label text
spacing'none' | 'sm' | 'md' | 'lg''md'Margin around divider
styleViewStyle-Custom styles

import { Divider, Card, Button } from '@synchronicity/react-native';
import { View, Text } from 'react-native';
function LoginOptions() {
return (
<Card>
<Button kind="primary" accessibilityLabel="Sign in with email">
Continue with Email
</Button>
<Divider label="or" spacing="lg" />
<Button kind="secondary" accessibilityLabel="Sign in with Apple">
Continue with Apple
</Button>
<Divider spacing="lg" />
<Text style={styles.footer}>
By continuing, you agree to our Terms
</Text>
</Card>
);
}