Proyectos
Ver en GitHub
lochie/web-haptics
lochie/web-haptics has 2,856 GitHub stars and 96 forks. GitHot measured +1 stars in 24 hours, +4 in 7 days, and +19 in 15 days. Last checked 2026-11-25 09:35 UTC. Last push 2026-09-02.
Crecimiento de estrellas medido
- in 24h
- +1
- in 7 days
- +4
- in 15 days
- +19
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
Respuesta háptica para la web móvil
Web y aplicacionesREADME.md
OriginalWebHaptics
Haptic feedback for the mobile web. Supports React, Vue, and Svelte.
Installation
npm i web-haptics
Usage
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.
Contributing
Install dependencies
pnpm install:all
Dev/Watch Library and Example
pnpm dev
Build Library
pnpm build
Found this useful?
Follow me on Twitter.
Other projects
You might also like:
- Torph - Dependency-free animated text component.
- easing.dev - Easily create custom easing graphs.
Acknowledgements
- Special thanks to Alex for assistance with the site design.
Explorar proyectos relacionados
Cargando…