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
OR
Basic Separator
Section titled “Basic Separator”import { Separator } from '@fintech-sandpit/ui/react';
return ( <> <div>Content above</div> <Separator /> <div>Content below</div> </>);<template> <div> <div>Content above</div> <Separator /> <div>Content below</div> </div></template>
<script setup lang="ts">import { Separator } from '@fintech-sandpit/ui/vue';</script>Separator with Text
Section titled “Separator with Text”import { Separator } from '@fintech-sandpit/ui/react';
return ( <Separator> <span>OR</span> </Separator>);<template> <Separator> <span>OR</span> </Separator></template>
<script setup lang="ts">import { Separator } from '@fintech-sandpit/ui/vue';</script>Separator with Icon
Section titled “Separator with Icon”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>);<template> <Separator> <Icon :as="faHome" size="sm" class="text-gray-400" /> </Separator></template>
<script setup lang="ts">import { Separator, Icon } from '@fintech-sandpit/ui/vue';import { faHome } from '@fortawesome/free-solid-svg-icons';</script>| Name | Type | Required | Default | Description |
|---|---|---|---|---|
variant | SeparatorVariant | solid | Style variant of the separator | |
orientation | SeparatorOrientation | horizontal | Orientation of the separator | |
colorScheme | ColorScheme | neutral | Color scheme of the separator | |
thickness | Size | md | Thickness of the separator |
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
variant | SeparatorVariant | solid | Style variant of the separator | |
orientation | SeparatorOrientation | horizontal | Orientation of the separator | |
colorScheme | ColorScheme | neutral | Color scheme of the separator | |
thickness | Size | md | Thickness 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'