An interesting looking library that enables you to provide haptic feedback with your interactive elements on the web. A native API one day maybe?

WebHaptics
WebHaptics – Haptic feedback for the mobile web.Haptic feedback for the mobile web.
hey. The native API exists :)
https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API

MDN Web Docs
Vibration API - Web APIs | MDNMost modern mobile devices include vibration hardware, which lets software code provide physical feedback to the user by causing the device to shake. The Vibration API offers Web apps the ability to access this hardware, if it exists, and does nothing if the device doesn't support it.