Launch sale — 60% off Pro
Contact
SeparatorSpacing

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Separator - Tight Spacing

Separator with tight spacing using space-y-1 for compact layouts with minimal whitespace between sections built with shadcn/ui

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Sometimes content needs to breathe—other times it needs to be compact. This React Separator uses space-y-1 (4px) for minimal vertical spacing between sections, creating dense layouts where every pixel counts. Built with shadcn/ui and Radix UI, tight spacing works perfectly for list items, table-like data, compact cards, or mobile interfaces where screen real estate is precious. The separator provides visual division without wasting space.

Section 1

Section 2

Pattern created by @haydenbleasel

Installation

Questions you might have