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.
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
Installation
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.
Related
- Thick SeparatorA 4 pixel horizontal separator for major
- Horizontal SeparatorA horizontal separator that divides a
- Gradient SeparatorA horizontal separator that fades in and
- Dashed SeparatorA dashed horizontal separator drawn with
- Section Divider SeparatorA horizontal separator between two titled
- Standard CardA basic card with a title, a description