Launch sale — 60% off Pro
Contact
SeparatorWith Text

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

React Separator - With Text Center

Separator with centered text label between two symmetric separator lines for OR dividers in authentication forms built with shadcn/ui

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Authentication forms need that classic Or continue with divider—plain separators don't communicate the choice. This React Separator pattern places centered text (OR) between two flex-1 separator lines creating perfect symmetry. Built with shadcn/ui and Radix UI, the text uses shrink-0 to prevent compression, px-2 for breathing room, and uppercase styling for emphasis. Perfect for social login dividers, payment method choices, form alternatives, or any interface presenting equivalent options requiring visual balance.

OR

Pattern created by @haydenbleasel

Installation

Questions you might have