Shadcn.io is not affiliated with official shadcn/ui
With Margins
Separator with my-6 vertical margins on the element itself for precise React spacing independent of sibling gap
Let the line own its pause. This React Separator uses my-6 instead of a parent gap so spacing stays attached to the rule when siblings do not share one flex rhythm. Built with shadcn/ui and Radix UI. Perfect when a separator sits between mixed components that should not inherit a common gap.
With Margins preview
Scroll to load preview
Installation
Related Components
Tight Spacing
Minimal gap-1 separator spacing
Default Spacing
Standard gap-4 separator spacing
Wide Spacing
Generous gap-8 separator spacing
Inset Separator
Separator with horizontal inset
Horizontal Separator
Simple horizontal separator
Section Divider
Titled section breaks
FAQ
Was this page helpful?
Sign in to leave feedback.