Launch sale — 60% off Pro
Contact
FieldToggles

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

React Field - Switch with Description

A React switch field with label and description grouped in FieldContent for security settings like multi-factor authentication built with shadcn/ui

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Security features need explanation before users enable them. This React switch groups label and multi-line description using FieldContent so explanatory text appears directly below the label with switch aligned to the right. Built with shadcn/ui Switch and Radix UI primitives in horizontal Field layout, it's perfect for security toggles, privacy settings, or any feature where users need context before deciding.

Enable multi-factor authentication. If you do not have a two-factor device, you can use a one-time code sent to your email.

Pattern created by @haydenbleasel

Installation

Questions you might have