Skip to content
SENVENLI UI

Separator

A thin line between groups that spacing alone does not separate, optionally with a short label.
Between groups
import { Separator } from "@senvenli/react/display";

Examples

Vertical

Between items in a row; `decorative` hides a line that only decorates.

With a label

For the alternative on an auth form, not for section titles.

Guidelines

When to use it

  • Two groups of content need a visible boundary.
  • An "or" between alternative sign-in methods.

Use something else when

  • The groups are separate objects; give each its own card. Card

Do and avoid

  • Prefer space over lines; add a separator only when space is not enough.

Accessibility

Built in

  • Exposed as a separator with its orientation.

You provide

  • decorative when the line only decorates.

API reference

Separator

orientation
"horizontal" | "vertical"Default "horizontal"
children
React.ReactNode

A label in the line ("or continue with email"), for auth forms only, not section titles. Always horizontal.

isDecorative
boolean

Hides it from assistive tech when it only decorates.