Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Inset Separator

Inset separator with horizontal margins using mx-8 creating visual indentation for contained or nested content sections built with shadcn/ui

Full-width separators feel dominant—sometimes you want subtle division. This React Separator uses mx-8 (32px horizontal margins) to create an inset effect where the separator doesn't span the full container width. Built with shadcn/ui and Radix UI, inset separators suggest subtle sectioning within a larger bounded area—perfect for list items, card sections, nested content, or any layout where full-width separators feel too strong or formal. The indentation softens visual impact.

Inset Separator preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.