Separator

PreviousNext

A visual divider for separating content sections with horizontal or vertical orientation

A simple, accessible separator component for visually dividing content sections. Built on Radix UI primitives with customizable orientation and styling.

Basic Usage

The most common usage is a horizontal separator to divide content vertically.

Section One

This is the first section of content.

Section Two

This is the second section of content.

Vertical Separator

Use orientation="vertical" to create a vertical divider for side-by-side content.

Left Content

Details here

Right Content

More details

In Lists

Separators are commonly used between list items to create clear visual separation.

Recent Activity

Your latest actions and updates

Profile Updated

2 hours ago

Document Shared

5 hours ago

Task Completed

Yesterday

Custom Styling

Override the default styles with the className prop for custom colors, thickness, or spacing.

Thicker separator

Custom color

Dashed style

Gradient separator

In Cards

Separators work well within cards to organize different sections of content.

Account Settings

Manage your account preferences

Email NotificationsEnabled
Two-Factor AuthDisabled
Privacy ModeOn
Data SharingOff

With Text Labels

Create section headers with inline text and separator lines.

OR
Continue with
Section 1

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"The orientation of the separator
decorativebooleantrueWhen true, the separator is purely visual and ignored by screen readers
classNamestring-Additional CSS classes for custom styling