shadcn.io is not affiliated with official shadcn/ui
Separator examples · Spacing
Wide Spacing Separator for React
A horizontal separator in a flex column with a 32 pixel gap for major section breaks.
Give major sections a pause. This React Separator sits in a flex column with gap-8, so the line reads as a chapter break rather than a list rule. Use it for landing pages, article divisions and any layout where hierarchy matters more than density.
Preview
Installation
FAQ
When should I use wide spacing?
Between major page regions, such as Features and Testimonials, or chapters of an article. If people have to scroll past an empty band to reach the next related paragraph, the gap is too wide.
Can spacing be too wide?
Yes. gap-8 is a generous section break; from gap-12 up, related content starts to look disconnected. Keep that for large landing pages.
Does wide spacing improve hierarchy?
Yes, together with headings. The whitespace is the pause and the line is the period, but neither replaces a real heading.
Related
- Tight Spacing SeparatorA horizontal separator in a flex column
- Default Spacing SeparatorA horizontal separator in a flex column
- With Margins SeparatorA horizontal separator with vertical
- Horizontal SeparatorA horizontal separator that divides a
- Inset SeparatorA horizontal separator inset from both
- Section Divider SeparatorA horizontal separator between two titled