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