Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Separator examples · Styled

Double Line Separator for React

Two parallel horizontal separators with a tight gap for a formal double rule.

Framework
UI library

Stack two rules for a formal break. This React example places two Separators in a gap-1 column, so they read as one double line rather than two unrelated breaks. Use it for certificates, legal closings and formal footers.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

When should I use a double line?

For a rare formal break: awards, legal closings, formal footers. A single thick line is the modern equivalent. Don't double every section.

How tight should the two lines be?

gap-1 (4 pixels) keeps them together as one unit. At gap-2 they start to look like two separate lines.

Can the two lines differ?

Yes: give each Separator its own classes, such as a thicker top line. Two equal one-pixel lines are the traditional look.

Is a double line heavier than a thick line?

A similar weight with a different character. Two one-pixel lines with a 4 pixel gap are about as tall as a 4 pixel line, but read as formal rather than bold.

Why does a double rule feel formal?

Print has long used parallel rules on certificates and legal pages, and readers still recognize the convention.

Do screen readers hear two separators?

Put the meaning in the text above or below; the pair is decoration. Both lines are exposed as separators. If one break should be announced once, use a single Separator plus a border for the second line.