Primitives
Primitive

Separator

Visual divider for separating content sections

A separator is a thin rule that divides content into groups. Use it between list items, toolbar sections, or stacked cards. Set orientation="vertical" to divide items in a row.

Preview

Cubby UI

A modern UI component library.

Get Started

Install and configure components in your project.

Installation

Usage

Examples

Variants

Use variant to set the line's thickness and style.

Default

Thick

Dashed

VariantDescription
defaultA 1px solid rule.
thickA heavier 2px solid rule.
dashedA dashed rule for a softer divide.

Vertical

Set orientation="vertical" to divide items laid out in a row.

50K+
Users
100K+
Downloads
4.8
Rating

API Reference

The Separator component is built on top of Base UI's Separator. All Base UI props are supported. The documentation below only covers custom props specific to our implementation.

For the complete Base UI API, see the Base UI Separator documentation.

Custom Props

Separator

Prop