VueLongpress

A VueJS (2.x) button component that requires you to keep pressing to confirm a given action.

Confirmation button for sensitive action, which requires to be hold for an amount of seconds

What is this?

A component that will generate a button that requires you to keep pressing for a given time to execute a given action.

Why would i need that?

Think of a sensitive scenario, something like deleting a user's data, you might need to confirm for 5 seconds that you actually want to delete it, to prevent unintentional clicks

Live Demo

https://jsfiddle.net/qr9ykxpp/

GitHub