Field Toggles 5 component design & features
This example combines shadcn Switch with Field and FieldLabel for binary settings such as enabling dark mode or public profile. The switch state maps clearly to enabled versus disabled.
Simple switches fit feature toggles in settings sidebars and inline table row actions. Choose switches over checkboxes when the change applies immediately without a form submit.
