Dev Design Library

Promise Toast

One toast that morphs from saving to saved, or to an error with retry.

Promise Toast preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/promise-toast.json
Files
  • src/lab/components/promise-toast.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab