Skip to content
Statix Design System

Display

Separator

1px hairline between groups of content. Statix separates mostly by fill, so use a separator only where two blocks share the same surface.

import { Separator } from '@statix/ui/separator';

Examples

Horizontal

Between the quick links and the support row on the start page.

Contracts and prices

Services and notice periods

Questions or a broken website?

Call 040 468 970 790, Mon to Fri, 8 am to 8 pm.

<script lang="ts">
	import { Separator } from '@statix/ui/separator';
</script>

<div class="flex w-full max-w-md flex-col gap-5">
	<div>
		<p class="font-medium text-ink">Contracts and prices</p>
		<p class="text-muted-foreground">Services and notice periods</p>
	</div>
	<Separator />
	<div>
		<p class="font-medium text-ink">Questions or a broken website?</p>
		<p class="text-muted-foreground">Call 040 468 970 790, Mon to Fri, 8 am to 8 pm.</p>
	</div>
</div>

Vertical

Between inline items. The parent needs a height, or use self-stretch in a flex row.

yoga-berger.de WordPress 6.8 PHP 8.3
<script lang="ts">
	import { Separator } from '@statix/ui/separator';
</script>

<div class="flex h-6 items-center gap-4 text-small text-ink-2">
	<span>yoga-berger.de</span>
	<Separator orientation="vertical" />
	<span>WordPress 6.8</span>
	<Separator orientation="vertical" />
	<span>PHP 8.3</span>
</div>

On tone cards

Override the colour with class="bg-white/15".

3 websites · WordPress hosting

Go to your websites

<script lang="ts">
	import { Separator } from '@statix/ui/separator';
</script>

<div class="flex w-full max-w-sm flex-col gap-4 text-white">
	<p>3 websites · WordPress hosting</p>
	<Separator class="bg-white/15" />
	<p class="font-medium">Go to your websites</p>
</div>

Guidelines

Do

  • Use one hairline between sections that sit on the same fill.

Don't

  • Don’t put separators between cards. The page background already separates them.
  • Don’t use thicker lines or colours for emphasis.

Accessibility

  • By default the separator is decorative (role="none") and screen readers skip it.
  • Pass decorative={false} when it divides meaningful sections. It then gets role="separator" and aria-orientation.

API reference

Separator

renders <div> and accepts its attributes
PropTypeDefault
orientation 'horizontal' | 'vertical'

Direction of the line.

'horizontal'
decorative boolean

Hide it from assistive technology.

true
ref bindHTMLElement | null

The rendered element.

–
class ClassValue

Merged with the base classes; yours win.

–
Data attributeMeaning
data-slot="separator"Always present. Override it with the data-slot prop.
data-orientationhorizontal or vertical.