Dev Design Library

Switch 10 - Async Save

Two-factor authentication switch that saves to the server with a saving state, a saved confirmation, and a revert with an error message when the request fails.

Switch 10 - Async Save preview
Library
Shadcn Space
Framework
React
Type
component
License
MIT
Dependencies
lucide-react
Files
  • src/components/shadcn-space/switch/switch-10.tsx
  • src/components/ui/label.tsx
  • src/components/ui/spinner.tsx
  • src/components/ui/switch.tsx
  • src/lib/utils.ts
  • src/config.ts
Source
https://github.com/shadcnspace/shadcnspace

Categories

More from Shadcn Space