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>
<div>...</div>
<Separator />
<div>...</div>
</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>
);
NameTypeDefaultDescription
variantSeparatorVariantsolidStyle variant of the separator
orientationSeparatorOrientationhorizontalOrientation of the separator
thicknessSeparatorThicknessmdThickness of the separator
type SeparatorOrientation = 'horizontal' | 'vertical'
type SeparatorThickness = 'sm' | 'md' | 'lg'
type SeparatorVariant = 'solid' | 'dashed' | 'dotted'