New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-repeatable

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-repeatable

A press and hold wrapper component that can trigger action multiple times while holding down a clickable element.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1.4K
37.62%
Maintainers
1
Weekly downloads
 
Created
Source

react-repeatable build status Coverage Status

NPM

A press and hold wrapper component that can trigger action multiple times while holding down a clickable element.

Demo: https://cheton.github.io/react-repeatable

Installation

npm install --save react-repeatable

Usage

<Repeatable
    enterDelay={500}
    intervalDelay={50}
    onPress{(event) => {
        // Callback fired when the mousedown or touchstart event is triggered.
    }}
    onRelease={(event) => {
        // Callback fired when the mouseup, touchcancel, or touchend event is triggered.
    }}
>
    <button
        type="button"
        onClick={(event) => {
            // The click action will be triggered multiple times.
        }}
    >
        Press Me
    </button>
</Repeatable>

API

Properties

NameTypeDefaultDescription
enterDelayNumber500The time (in milliseconds) to wait before the action is being triggered.
intervalDelayNumber50The intervals (in milliseconds) on how often to trigger the action.
onPressFunctionCallback fired when the mousedown or touchstart event is triggered.
onReleaseFunctionCallback fired when the mouseup, touchcancel, or touchend event is triggered.

License

MIT

Keywords

react

FAQs

Package last updated on 28 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts