Skip to content

Separator

The Separator component is a visual divider used to separate content sections. It supports horizontal and vertical orientations, multiple variants (solid, dashed, dotted), customizable colors, and different thicknesses.

OR
import { Separator } from '@fintech-sandpit/ui/react';
return (
<>
<div>Content above</div>
<Separator />
<div>Content below</div>
</>
);
import { Separator } from '@fintech-sandpit/ui/react';
return (
<Separator>
<span>OR</span>
</Separator>
);
import { Separator, Icon } from '@fintech-sandpit/ui/react';
import { faHome } from '@fortawesome/free-solid-svg-icons';
return (
<Separator>
<Icon
as={faHome}
size="sm"
className="text-gray-400"
/>
</Separator>
);
NameTypeRequiredDefaultDescription
variantSeparatorVariantsolidStyle variant of the separator
orientationSeparatorOrientationhorizontalOrientation of the separator
colorSchemeColorSchemeneutralColor scheme of the separator
thicknessSizemdThickness of the separator
type SeparatorVariant = 'solid' | 'dashed' | 'dotted'
type SeparatorOrientation = 'horizontal' | 'vertical'
type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'