Launch sale — 60% off Pro
Contact
ToggleStandard

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

React Outline Toggle

Outline variant toggle button with border-only styling for subtle pressed state using variant="outline" with transparent background until active

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Default toggles too bold for your minimal interface? Outline variant keeps it subtle—transparent background with border—pressed state fills in. This React toggle uses shadcn/ui's variant equals outline with Radix UI state management and Lucide React ItalicIcon for formatting control. Built with border-based visual hierarchy instead of solid fills, outline toggles blend into clean interfaces—perfect for light-touch toolbars, minimal text editors, secondary formatting options, sidebar controls, or any design where understated toggles matter more than prominent solid buttons.

Pattern created by @haydenbleasel

Installation

Questions you might have