Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Disabled Switch

Switch toggle with disabled prop for non-interactive read-only state with reduced opacity and no pointer events built with shadcn/ui

Not every control should be clickable—sometimes features aren't available yet, permissions restrict access, or prerequisites aren't met. This React switch uses disabled prop with shadcn/ui Switch component for non-interactive read-only binary state display. Built with Radix UI primitives with automatic opacity-50 styling and cursor-not-allowed, the disabled switch shows configuration without allowing changes—perfect for insufficient permissions, unavailable features, loading states, or any interface where users need to see toggle state but can't modify it yet.

Disabled Switch preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.