By lochie
Add haptic feedback to buttons, toggles, forms, pickers, and other interactive elements in web apps, targeting mobile UIs with tactile interactions.
Haptic 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:
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimnpx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin lochie-web-haptics120+ Vue/Nuxt animated components with TailwindCSS v4, motion-v, GSAP, Three.js. Use for hero sections, 3D effects, interactive backgrounds, or encountering setup, CSS variables, motion-v integration errors.
Proxy-based reactive state management library for building responsive, minimal-boilerplate applications.
Headless utilities for range and multi-range sliders
Modern animation library for React and JavaScript. Create smooth, production-ready animations with motion components, variants, gestures (hover/tap/drag), layout animations, AnimatePresence exit animations, spring physics, and scroll-based effects. Use when building interactive UI components, micro-interactions, page transitions, or complex animation sequences.
Add type-safe keyboard shortcuts to React apps with TanStack Hotkeys. Covers hotkey registration, cross-platform Mod shortcuts, Vim-style multi-key sequences, hotkey recording for customization UIs, real-time key state tracking, platform-aware display formatting, and devtools integration.
React design philosophy for abstraction design, hook review, and hook writing. Covers declarative APIs, lifecycle safety, SSR, state design, effect patterns, TypeScript, and performance.