0.0.3 • Published 6 months ago
hold-for-action v0.0.3
Hold for action
A simple vue library, allowing you to hold a button for a set period of time to trigger an action.
Installation
npm install hold-for-action
Usage
<template>
<div>
<HoldForAction @complete="doSomething" :message="'Hello'"
:completionMessage="'World!'" :holdDuration="5" :buttonColor="'#fca5a5'">
<button>Hold me for 1 second</button>
</HoldForAction>
</div>
</template>