Hooks & Utilities
v1.0.0Added in 1.0.0
Haptic feedback for the web in one call: short vibration ticks on Android and the system tick on iPhone, silent everywhere else.
Tap a tile on a phone to feel each kind: a faint selection detent, light, medium and heavy impacts, and the success, warning and error patterns drawn as bars on the tile. Send plays the kind picked in the playground. On a desktop nothing vibrates and the readout says haptic() returned false; turn enabled off to see every call return false on a phone too.
npx wingo-ui@latest add hapticsPro item: the CLI needs a Pro account. See plans
No dependencies beyond React.
haptic("light") → …Checking this device…configureHaptics({ enabled: true, iosFallback: true })