10000 GitHub - aadeexyz/tactus: Add native-like haptic feedback to any web app.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aadeexyz/tactus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

📄 License

MIT © 2025 Aadee

Made with ❤️ by Aadee

About

Add native-like haptic feedback to any web app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0