Separator

Visual or semantic divider between content

Category: display · WCAG 2.2-AA · divider, rule, layout

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical'horizontalLayout orientation of the component.
decorativebooleanfalseWhen true, the separator is purely visual and hidden from assistive tech

Design tokens

When to use

When not to use

How to build an accessible Separator in React →

Examples

Horizontal

<Separator />

Vertical

<Separator orientation="vertical" />

Related components

← Back to docs