Dev Design Library

Confirm morph

A destructive button that morphs into an inline confirmation, a spinner, and a result with undo.

Confirm morph preview
Library
Arc Library
Framework
React
Type
ui
License
MIT
Dependencies
lucide-react, motion
Install
npx shadcn@latest add https://uiarc.dev/r/confirm-morph.json
Files
  • registry/components/confirm-morph/confirm-morph.tsx
  • registry/components/confirm-morph/confirm-morph.module.css
  • registry/motion-tokens.ts
  • lib/motion-tokens.ts
Source
https://github.com/kuratlielia/arc-library

Categories

More from Arc Library