Separator

A visual divider that separates content into distinct sections, available in horizontal or vertical orientations.

Anatomy

<script>
  import { Separator } from "@saas-ui/svelte/components/separator";
</script>

<Separator orientation="horizontal" variant="solid" size="sm" />

Examples

Basic Accessibility

Basic separator with default styling.

Colours Accessibility

Use the colour prop to change the colour of the separator.

Label Accessibility

Use separators with text labels for visual grouping.

Sizes Accessibility

Use the size prop to change the thickness of the separator.

Variants Accessibility

Use the variant prop to change the line style.

Vertical Accessibility

Use orientation="vertical" for vertical separators.

Props

Prop Type Default Description
orientation horizontal | vertical horizontal The orientation of the separator.
variant solid | dashed | dotted solid The visual variant of the separator.
size xs | sm | md | lg sm The thickness of the separator.
colour gray | red | orange | yellow | green | teal | blue | cyan | purple | pink | rose - The colour of the separator.
class text - CSS class to apply to the component.