Haptic feedback for the mobile web
See the codeHaptic feedback for the mobile web. Supports React, Vue, and Svelte.
npm i web-haptics
import { useWebHaptics } from "web-haptics/react";
function App() {
const { trigger } = useWebHaptics();
return <button onClick={() => trigger("success")}>Tap me</button>;
}
See the package README for Vue, Svelte, and vanilla examples.
pnpm install:all
pnpm dev
pnpm build
Follow me on Twitter.
You might also like:
(top 24 of 56)
1,937 followers · starred Mar 2026
496 followers · starred Mar 2026
6,580 followers · starred Mar 2026
345 followers · starred Mar 2026
Haptic feedback for the mobile web
See the codeHaptic feedback for the mobile web. Supports React, Vue, and Svelte.
npm i web-haptics
import { useWebHaptics } from "web-haptics/react";
function App() {
const { trigger } = useWebHaptics();
return <button onClick={() => trigger("success")}>Tap me</button>;
}
See the package README for Vue, Svelte, and vanilla examples.
pnpm install:all
pnpm dev
pnpm build
Follow me on Twitter.
You might also like:
(top 24 of 56)
1,937 followers · starred Mar 2026
496 followers · starred Mar 2026
6,580 followers · starred Mar 2026
345 followers · starred Mar 2026