Skip to content
Ballpoint

Separator

A gently wandering pen rule, horizontal or vertical.

From shadcn/ui
Built on Base UI Separator

Ballpoint

Components drawn in blue ballpoint.

DocsComponentsSource

Installation

pnpm dlx shadcn@latest add @ballpoint/separator

Usage

tsx
import { Separator } from "@/components/ui/separator"

<Separator />
<Separator orientation="vertical" />

Examples

Between sections

Rules that divide a settings page, with the danger zone last.

Account

Your name and email.

Notebooks

Where your pages live.

Danger zone

Delete everything. There is no undo.

With a label

Write in the middle of a rule: the or between two ways in.

In a toolbar

Vertical rules dividing groups of buttons.

API reference

orientation
default "horizontal"
"horizontal" | "vertical"

Which way the rule runs.

delay
default 0
number

ms after the pen gets to it before the rule is drawn. Rising delays rule a list off one line after another.

children
ReactNode

If given, written in the middle of a rule that runs both sides of it. The wrapper is the separator for assistive technology.

seed
string | number

Pins the drawing.

Every other prop goes to Base UI's Separator.

Pen settings

The drawing also takes draw, weight and speed, as props or from the nearest InkProvider. What each one does.