Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Disabled Toggle

Disabled toggle button with non-interactive state using disabled prop for grayed-out appearance with opacity-50 and cursor-not-allowed styling

Sometimes formatting options aren't available—premium features locked, incompatible states, loading conditions—users need to see unavailable controls. This React toggle uses shadcn/ui's disabled prop with Radix UI applying opacity-50 and cursor-not-allowed automatically—signaling this option isn't clickable right now. Built with Lucide React UnderlineIcon and aria-label maintaining accessibility, disabled toggles stay visible in toolbars—perfect for conditional formatting, permission-restricted features, incompatible state indicators, loading placeholders, or any interface where showing unavailable options with clear visual feedback matters more than hiding them completely.

Disabled Toggle preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.