Delete Button
- from @mizzle
- by mizzle <https://mizzle.saddy.me>
A delete button you press and hold. A solid red fill sweeps in under a feathered edge, turning the label white as it passes, while the bin’s lid opens; let go early and it runs back, hold to the end and it deletes, shows a spinner while your promise runs, then a drawn check. Holding is the confirmation, so there is no dialog.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @mizzle/delete-buttonComponent source
No live preview has been built for this component yet.
Registry dependencies2
- @mizzle/use-merged-ref
- @mizzle/use-outgoing
Packages0
No npm packages are installed with it.
