GitHub

haptics · sound · motion

Scan to open tactile.dalin.pro on your phone
More events and the sound palette

More events

All three channels, exactly like the grid up top. Wire press and release to pointerdown and pointerup on the same element and the pair reads as one physical button.

Sound palette

t.cue(name) plays one cue with no haptic and no motion. Twenty of them are synthesized on the fly, no audio files. The eight marked ✦ are timbres no default event uses, there for you to compose with.

Install

$npm install github:gomezsj12/dalin-tactile

Not on npm yet. Installs from source, imports as @dalin/tactile. Zero deps · ESM + types.

Usage

import { createTactile } from "@dalin/tactile";

// All three channels (haptic + sound + motion) from one call.
const t = createTactile({ haptics: true, sound: true, motion: true });

button.addEventListener("click", (e) => t.success(e));
// → taptic buzz + chime + an emoji burst at the tap 🎉