Dev Design Library

Switch 13 - Confirm Before Enabling

Maintenance mode switch that asks for confirmation in an alert dialog before turning on, and shows an offline status banner while active.

Switch 13 - Confirm Before Enabling preview
Library
Shadcn Space
Framework
React
Type
component
License
MIT
Dependencies
lucide-react
Files
  • src/components/shadcn-space/switch/switch-13.tsx
  • src/components/ui/alert-dialog.tsx
  • src/components/ui/label.tsx
  • src/components/ui/switch.tsx
  • src/lib/utils.ts
  • src/config.ts
  • src/components/ui/button.tsx
Source
https://github.com/shadcnspace/shadcnspace

Categories

More from Shadcn Space