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

tactus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tactus

Add native-like haptic feedback to any web app.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Tactus 🌵

Give your web app a little tap of magic—add native-style haptic feedback to every click.

🚀 Install

npm install tactus

Usage

import { triggerHaptic } from "tactus";

export default function BuyButton() {
    return <button onClick={() => triggerHaptic()}>Buy now</button>;
}

triggerHaptic(duration?) fires one haptic pulse.

  • No argument → 100 ms by default
  • iPhone / iPad → Safari’s crisp “tick” 💥
  • Other browsers → falls back to the Vibration API 📳

🌐 Browser support

PlatformSupportedNotes
iOS 12 + (Safari & web-views)Native (switch)
Android 5 +Vibrations API
Desktop🚫Not supported yet

📄 License

MIT © 2025 Aadee

Made with ❤️ by Aadee

Keywords

haptics

FAQs

Package last updated on 17 Jun 2025

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