Socket
Book a DemoInstallSign in
Socket

react-haptic-button

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-haptic-button

A React Button with Life (Haptic Feedback)

1.0.0-dev-102
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-haptic-button

CircleCI

A React Button with Life (Haptic Feedback)

Enhance your User Experience with Haptic Feedback when you click the Button.*

*Currently available only on Android Devices. IOS is not supported. Check Browser Compatibility for more.

Features

  • Provides Haptic Feedback on supported devices
  • Backwards compatible on unsupported devices
  • Fully Customisable, Extend/Build to Suit
  • Support Styles
  • Support Classname

Installation

yarn add react-haptic-button

Usage

  import HapticButton from 'react-haptic-button';

  <HapticButton
    isHapticFeedbackEnabled={true}
    hapticFeedbackDuration={100}
    className="my-button-class"
    onClick={(e) => {/* Your Click Handler */}}
    type={'button'}
    style={{
      padding: '8px'
    }}
  >
  Confirm
  </HapticButton>

Props

propstypedefault valuedescription
isHapticFeedbackEnabledbooleantrueEnables/Disables the Haptic Feedback (Optional)
hapticFeedbackDurationnumber10Haptic Feedback Duration in ms (Optional)

All the other props passed to HapticButton are applied to the <button> internally.

Browser Compatibility

Haptic Feedback is available on Android Devices.

Browser Compatibility

FAQs

Package last updated on 06 Jan 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.